Question Detail

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

  • S
  • Error
  • Garbage value
  • None of above
Similar Questions :

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

  • Yes
  • No

2. What is correct order of precedence in C

  • Addition, Division, Modulus
  • Addition, Modulus, Division
  • Multiplication, Substration, Modulus
  • Modulus, Multiplication, Substration

3. Which of the following below is/are valid C keywords

  • integer
  • int
  • null
  • none of above

4. Size of void pointer is

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

5. What is dangling pointer in c

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