Which is not valid in C

a) class aClass{public:int x;};

b) /* A comment */

c) char x=12;


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

Post New Answer

More C Interview Questions

10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning

5 Answers   Accenture,


which one low Priority in c? a)=,b)++,c)==,d)+

10 Answers  


Can 'this' pointer by used in the constructor?

0 Answers  


#include<conio.h> #include<stdio.h> void main() { int i; if(1,0,2,3) { printf("if"); } else { printf("else"); } getch(); } Can any body tell the answer of this question with explanation?

3 Answers   Huawei,


How does #define work?

0 Answers  






what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???

2 Answers   NSN,


how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);

19 Answers   RMSI,


What does sizeof return c?

0 Answers  


Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17

0 Answers  


Print all numbers which has a certain digit in a certain position eg: number=45687 1 number=4 2 number=5 etc

4 Answers  


How do you write a program which produces its own source code as its output?

4 Answers  


Does c have circular shift operators?

0 Answers  


Categories