download Mastguru Android App

Question Detail

Which is invalid name of identifier

  • world
  • addition23
  • test_name
  • factorial
Similar Questions :

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

  • S
  • Error
  • Garbage value
  • None of above

2. Due to variable scope in c

  • Variables created in a function cannot be used another function
  • Variables created in a function can be used in another function
  • Variables created in a function can only be used in the main function
  • None of above

3. 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

4. Out of following program :
float x = 10.7;
int i;

i = (int) x;
print i;

  • null
  • error
  • 10
  • garbage value

5. Break statement is used for

  • Quit a program
  • Quit the current iteration
  • Both of above
  • None of above
Read more from - C Programming Questions Answers - Chapter 1
Post a comment

  • VIDYA DESHMUKH 7 years ago

    test_name is identifier because _ is also come in valid in identifier then test_name is valid identifier