Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


&#8206;#define good bad
main()
{
int good=1;
int bad=0;
printf ("good is:%d",good);
}

Answers were Sorted based on User's Feedback



&#8206;#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good..

Answer / suresh kumar beniwal

multiple declaration of bad
so error occur
write program is

#define good bad
main()
{
int good=1;
bad=0;
printf ("good is:%d",good);
}

output :
good is : 0

Is This Answer Correct ?    3 Yes 0 No

&#8206;#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good..

Answer / elango

ans:0

Explain:
#define good bad
is denoted by good = bad,
printf("good is:%d",good);

ans"0

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Code Interview Questions

main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }

2 Answers  


#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225 c. 15 d. none of the above

3 Answers   HCL,


why is printf("%d %d %d",i++,--i,i--);

4 Answers   Apple, Cynity, TCS,


create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"

1 Answers  


Under linux environment can u please provide a c code for computing sum of series 1-2+3-4+5......n terms and -1+2-3+4-5...n terms..

2 Answers  






int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().

1 Answers  


C program to print magic square of order n where n > 3 and n is odd

2 Answers   Accenture,


Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }

1 Answers  


void main() { int i; char a[]="\0"; if(printf("%s\n",a)) printf("Ok here \n"); else printf("Forget it\n"); }

3 Answers   Accenture,


How will u find whether a linked list has a loop or not?

8 Answers   Microsoft,


There is a lucky draw held every day. if there is a winning number eg 1876,then all possible numbers like 1867,1687,1768 etc are the numbers that match irrespective of the position of the digit. Thus all these numbers qualify fr the lucky draw prize Assume there is no zero digit in any numbers. write a program to show all the possible winning numbers if a "winning number"is passed as an arguments to the function.

1 Answers   Nagarro,


void main() { char ch; for(ch=0;ch<=127;ch++) printf(ā€œ%c %d \nā€œ, ch, ch); }

1 Answers  






Categories