Program Ape's---C language details 8

Source: Internet
Author: User
Main content: function parameter passing, declaration and other details

#include <stdio.h> int ff ();   1, when the function parameter list does not have char, short, float type (that is, is limited to int, double type can be omitted), the function declaration can omit the parameter type description,            //But the definition cannot omit the parameter type             //2, The parameter name can be omitted when declaring, such as int ff (int); Only description type int main (int argc, char * * argv) {FF (333);  FF has 3 parameters, passing only one without error, other variable value unknown int i = f (' a ');p rintf ("i =%d\n", i); return 0;} int ff (double A, int c, int t)  //With char, short, float type {printf ("a =%d\n", a);p rintf ("c =%d\n", c);p rintf ("t =%d\n ", t); return 0;} int f (c) char C;    ANSI C standard can be defined before, now the test can also use {return C;}

Output:


Program Ape's---C language details 8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.