Which is not valid in C?




1) class aClass{public:int x;}


2) /* A comment */


3) char x=12;


Answers were Sorted based on User's Feedback



Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ ..

Answer / k.kavitha

class aClass{public:int x;}

Is This Answer Correct ?    11 Yes 0 No

Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ ..

Answer / deepthi

1) class aclass{public:int x;}

Is This Answer Correct ?    10 Yes 0 No

Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ ..

Answer / bhavesh kashikar

1) class aClass{public:int x;}

Is This Answer Correct ?    4 Yes 0 No

Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ ..

Answer / sridhar

1)is valid in case of objective C
2)thts a valid comment
3)its invalid

Is This Answer Correct ?    2 Yes 0 No

Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ ..

Answer / chandrashekhar

1) Is invalid
3)is also invalid

Is This Answer Correct ?    1 Yes 0 No

Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ ..

Answer / sriharsha

I think char x=12 is also not valid

Because 1.maximum length of the character can be 1 character
2.It should enclosed within single inverted commas, like
'1',or 'a'.

Is This Answer Correct ?    2 Yes 2 No

Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ ..

Answer / sourisengupta

1) class aClass{public:int x;}
3) char x=12;

these twoo are not valid in c.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

Can a pointer point to null?

0 Answers  


4.A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above

6 Answers   Accenture,


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

3 Answers  


why effort estimation is important?

1 Answers  


DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?

2 Answers   Wipro,






what is differnence b/w macro & functions

1 Answers  


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

0 Answers   HCL,


if p is a string contained in a string?

0 Answers  


difference of two no's with out using - operator

7 Answers  


Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.

12 Answers   MIT, TCS,


What is macro?

5 Answers   IBM,


What is meant by operator precedence?

0 Answers  


Categories