Select chapter



functions (3.papers)
loops (1.papers)
arrays (2.papers)
structures (3.papers)
unions (1.papers)
pointers (7.papers)
null pointers (1.papers)
strings (2.papers)
misc c concepts (1.papers)
Data structures (5.papers)
linked lists (3.papers)
trees (1.papers)
basics (5.papers)
Hide

Sponsored Links


  

c enums and typedefs interview questions and answers

1
How to define number of hours in an year, Using #define statement in c?
  1. #define hour
  2. #define hour 365*24
  3. #define hour (365*24)
  4. none of the above
Show Answer
Share Facebook gmail Twitter
2
What is the difference between #include <clasa.h> and #include "clasa.h"?
  1. in the first version the compiler searches the file in all directories and in the second version the compiler searches the file in the current directory.
  2. in the first version the compiler searches the file in the current directory and in the second version the compiler searches the file in all directories
  3. no difference
  4. depends on the compiler
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
9
Which of below are preprocessor directives in c?
  1. #defines
  2. #pragma
  3. #include
  4. all of the above
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
17
#define in c:
What is the output of below C program?

#define test(x) test((x)+1)
  1. test((x)+1)
  2. test((x+….+1)+….+1)
  3. test((x+1)+1)
  4. error
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Read more papers :