Which is not valid in C?
1) class aClass{public:int x;}
2) /* A comment */
3) char x=12;
Answer Posted / 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 |
Post New Answer View All Answers
Explain what are global variables and explain how do you declare them?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What is the use of getch ()?
Can you define which header file to include at compile time?
Can you mix old-style and new-style function syntax?
What 'lex' does?
Differentiate between calloc and malloc.
Is it better to bitshift a value than to multiply by 2?
What are qualifiers in c?
What are the advantages of union?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is output redirection?
What are the standard predefined macros?