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
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 |
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 |
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 |
if a person is buying coconuts of Rs10,and then sell that coconuts of Rs9,with the loss of one rupee.After that the person became a millaniore.how?
main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }
what is the use of c program?
4 Answers Synergy, Web Synergies,
program to get the remainder and quotant of given two numbers with out using % and / operators?
10 Answers College School Exams Tests, IBM,
c program to compute AREA under integral
Write a program in c using only loops to print * * * * * *******
Dont ansi function prototypes render lint obsolete?
where are auto variables stored? What are the characteristics of an auto variable?
explain what is an endless loop?
Write a Program to find whether the given number or string is palindrome.
What should be keep precautions while using the recursion method?
What is a program flowchart and how does it help in writing a program?