What is the benefit of using an enum rather than a #define constant?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Is it acceptable to declare/define a variable in a c header?

0 Answers  


program to find the second largest word in a paragraph amongst all words that repeat more thn twice

4 Answers   CTS, iGate,


Why static variable is used in c?

0 Answers  


write a program to insert an element at the specified position in the given array in c language

5 Answers   Appin, IBM,


What is volatile in c language?

2 Answers   HCL, TCS,






FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

0 Answers   Wilco,


write a program in c language to print your bio-data on the screen by using functions.

6 Answers   College School Exams Tests, IBM,


Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV

5 Answers   Accenture,


Explain two-dimensional array.

0 Answers  


Differentiate between null and void pointers.

0 Answers   TCS,


What is wrong with this statement? Myname = 'robin';

0 Answers  


Why void main is used in c?

0 Answers  


Categories