Question Detail

rand() function returns

  • float value
  • integer value
  • any type
  • none of above
Similar Questions :

1. What will be the output of following program
#include
main()
{
int x,y = 10;
x = y * NULL;
printf(\"%d\",x);
}

  • error
  • 0
  • 10
  • Garbage value

2. Size of void pointer is

  • 1 byte
  • 2 byte
  • 4 byte
  • 8 byte

3. printf() belongs to which library of c

  • stdlib.h
  • stdio.h
  • stdout.h
  • stdoutput.h

4. What among following is true about stack

  • stack cannot reuse its memory
  • all elements are of different datatypes
  • all operation done at one end
  • none of above

5. The compiler in C ignores all text till the end of line using

  • //
  • /
  • */
  • none of above
Read more from - C Programming Questions Answers - Chapter 1