Question Detail

What is prototype of a function in C

  • It is the return type of a function
  • It is the return data of the function
  • It is declaration of a function
  • It is a datatype
Similar Questions :

1. Can getch() be used to echo the input

  • Yes
  • No

2. Break statement is used for

  • Quit a program
  • Quit the current iteration
  • Both of above
  • None of above

3. What is prototype of a function in C

  • It is the return type of a function
  • It is the return data of the function
  • It is declaration of a function
  • It is a datatype

4. What will be output of
#include
void main()
{
char test =`S`;
printf("\n%c",test);
}

  • S
  • Error
  • Garbage value
  • None of above

5. Difference between calloc() and malloc()

  • calloc() takes a single argument while malloc() needs two arguments
  • malloc() takes a single argument while calloc() needs two arguments
  • malloc() initializes the allocated memory to ZERO
  • calloc() initializes the allocated memory to NULL
Read more from - C Programming Questions Answers - Chapter 1