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

Answers were Sorted based on User's Feedback



‎#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

‎#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

how to return a multiple value from a function?

2 Answers   Wipro,


Link list in reverse order.

8 Answers   NetApp,


main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }

3 Answers  


plz send me all data structure related programs

2 Answers  


void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }

4 Answers  






plz tell me the solution.......... in c language program guess any one number from 1 to 50 and tell that number within 8 asking question in yes or no...............

2 Answers   Wipro,


main() { show(); } void show() { printf("I'm the greatest"); }

2 Answers  


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates.

19 Answers   Amazon, BITS, Microsoft, Syncfusion, Synergy, Vector,


void ( * abc( int, void ( *def) () ) ) ();

1 Answers  


void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

2 Answers  


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"

2 Answers  


main() { extern int i; i=20; printf("%d",sizeof(i)); }

2 Answers  


Categories