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

main() { int *j; { int i=10; j=&i; } printf("%d",*j); }

9 Answers   HCL, Wipro,


Printf can be implemented by using __________ list.

3 Answers  


Predict the Output: int main() { int *p=(int *)2000; scanf("%d",2000); printf("%d",*p); return 0; } if input is 20 ,what will be print

2 Answers  


enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

2 Answers  


Develop a routine to reflect an object about an arbitrarily selected plane

0 Answers  






1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.

3 Answers  


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


void main() { static int i=i++, j=j++, k=k++; printf(“i = %d j = %d k = %d”, i, j, k); }

3 Answers  


main() { main(); }

1 Answers  


main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024

2 Answers   HCL,


print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!

35 Answers   Tata Elxsi, TCS, VI eTrans,


What are the files which are automatically opened when a C file is executed?

1 Answers  


Categories