aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming Fundamentals
  • What is the output of the following code? # include# defi...
Multiple choice technology

What is the output of the following code? # include<stdio.h># define a 10 main() { printf("%d..",a); foo(); printf("%d",a); } void foo() { #undef a #define a 50 }

  1. 10..10

  2. 10..50

  3. Error

  4. 0

Reveal answer Fill a bubble to check yourself
A Correct answer

Keep practicing — related questions

  • What will be the output of the following code? #include<stdio.h> int main() { int num,a=5; num=-a--; printf...
  • What will be the output of following code segment? #include int main() { int num,a=5; num=-a--; printf("%d ...
  • #define a 10 main() { #define a 50 printf(“%d”,a); }
  • Output????? #include #define f(a,b) a##b #define g(a) #a #define h(a) g(a) int main() { printf("%s",h(f(1,2...
  • What is the output of the following code? #include void main() { int a=0,b=0; a = (b = 75) + 9; printf("\n%...
  • #include int main() { int main=7; printf("%d",main); }
  • What will be the output of the following function? #define int char main() { int i=65; printf(%d,sizeof(i)); }
  • What will be output if you will Execute following c code? #include int main() { int num,a=5; num=-a--; prin...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy