download Mastguru Android App

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. We can insert pre written code in a C program by using

  • #read
  • #get
  • #include
  • #put

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. 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. 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
Post a comment

  • janardhan 10 years ago

    #include<stdio.h>

  • Vera 11 years ago

    Can I simply say what a cmfoort to search out somebody who really knows just what they are sharing on the web. You definitely discover how to bring an issue to light and make it important. More people require to read it all and understand this particular side of the story. I can't believe you aren't very popular as you really have the gift.