aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming (C/C++)
  • What will be the output of the following function? #defin...
Multiple choice

What will be the output of the following function?

#define square(x) x*x main() {
int i; i = 64/square(4); printf(%d,i); }

  1. 1

  2. 64

  3. 0

  4. None of these

Reveal answer Fill a bubble to check yourself
D Correct answer

Keep practicing — related questions

  • 1)#define square(x) x*xmain(){ int i; i=64/square(4); printf(“%d”,i);}
  • What will be the output of the following function? main() { printf(%x,-1<<4); }
  • What will be the output of the following function? #define int char main() { int i=65; printf(%d,sizeof(i)); }
  • What would be the output of the following? #define SQR(x) x*x main() { int a,b=3; a=SQR(b+2); printf(“%d”,a...
  • What will be the output of the following function? # include <stdio.h> void main() { int k,num=30; k = (num...
  • ++ void main() { int i = 4, x; x = ++i + ++i + ++i; printf("%d", x); } What will be the output of the above...
  • What will be the output of the given function?void main() { int a=1,b=2,c=3,d=4; printf("%d",!a?b?!c:!d:a); }
  • What will be the output of the following function? # include <stdio.h> void main() { int i =2,j=2; printf(“...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy