Which is not valid in C?




1) class aClass{public:int x;}


2) /* A comment */


3) char x=12;


Answer Posted / chandrashekhar

1) Is invalid
3)is also invalid

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between declaring a variable and defining a variable?

719


What is a dynamic array in c?

589


When is the “void” keyword used in a function?

828


Explain the meaning of keyword 'extern' in a function declaration.

718


Is there any possibility to create customized header file with c programming language?

619






What are categories used for in c?

562


What does int main () mean?

544


what are enumerations in C

720


What does %2f mean in c?

674


What is structure in c language?

615


How can variables be characterized?

1645


How do you determine a file’s attributes?

598


Explain what are bus errors, memory faults, and core dumps?

786


What does c mean in basketball?

561


Can you return null in c?

591