Question Detail

rand() function returns

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

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

i = (int) x;
print i;

  • null
  • error
  • 10
  • garbage value

2. If (*p) and **p is same

  • No
  • Yes

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

  • S
  • Error
  • Garbage value
  • None of above

4. Size of void pointer is

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

5. Wild pointer in C

  • if pointer is pointing to a memory location from where variable has been deleted
  • if pointer has not been initialized
  • if pointer has not defined properly
  • if pointer pointing to more than one variable
Read more from - C Programming Questions Answers - Chapter 1