aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming Advanced Concepts
  • #define Str(x) #x #define Xstr(x) Str(x) #define OP plus ...
Multiple choice

#define Str(x) #x #define Xstr(x) Str(x) #define OP plus void main() { char *opname = Xstr(OP); printf(%s,opname); }

  1. Plus

  2. Compilation Error

  3. Runtime Error

  4. Linker Error

Reveal answer Fill a bubble to check yourself
A Correct answer

Keep practicing — related questions

  • #define str "TCS" ## "Hyd" main() { printf(str); }
  • #define T t void main() { char T=’T’; printf(“\n%c\t%c\n”,T,t); }
  • void main() { int _; _=100; printf("%d",_); }
  • void main() { int x; x=1; x= 2 + 2 * x++; printf("%d", x); }
  • What will be the output of the following: void main() { char const *ptr="abc"; ptr="xyz"; printf("%s",ptr); }
  • #include main(){ int a=2; int *p=&a; print("%x\t",p); print("%x\t",*p++); print("%x\t",p); }
  • void main() { char ch='ABCD'; switch(ch) { case 'ABCD': printf("HelloABCD"); break; case 'A': printf("Hello...
  • #include main (){ unsigned int a = 0xf0ad; char *c = (char *) &a; printf("value @c: %x",*c); }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy