31.
What will happen after compiling and running following code?
main()
{ 
     printf("%p", main); 
}

32.
Use of functions

33.
Any C program

34.
What is function?

35.
Determine output:
main()
{
      int i = abc(10);
      printf("%d", --i);
}

int abc(int i)
{
      return(i++);
}

37.
What is the result of compiling and running this code?
main()
{
      char string[] = "Hello World";
      display(string);
}

void display(char *string)
{
      printf("%s", string);
}

38.
Determine output:
main()
{
      int i = 5;
      printf("%d%d%d%d%d", i++, i--, ++i, --i, i);
}

39.
Pick the correct statements.
I.   The body of a function should have only one return statement.
II.  The body of a function may have many return statements.
III. A function can return only one value to the calling environment.
IV. If return statement is omitted, then the function does its job but returns no value to the calling environment.

40.
What will be the output of the following program code?
main()
{
      static int var = 5;
      printf("%d ", var--);
      if(var)
            main();
}

Read More Section(Function)

Each Section contains maximum 100 MCQs question on Function. To get more questions visit other sections.