Which is not valid in C

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

b) /* A comment */

c) char x=12;



Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;..

Answer / Pratigya Chaudhary

c) char x=12;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Explain threaded binary trees?

1 Answers  


What is the proper way of these job Tell me about there full work

0 Answers   EDS,


What are external variables in c?

1 Answers  


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

1 Answers  


what is a function pointer and how all to declare ,define and implement it ???

4 Answers   Honeywell,


Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

0 Answers  


Are comments included during the compilation stage and placed in the EXE file as well?

1 Answers  


What is the difference between ++a and a++?

1 Answers  


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

3 Answers   Ignou,


what is the use of #pragma pack, wer it is used?

2 Answers   Wipro,


What is volatile c?

1 Answers  


What is the difference between array and pointer in c?

1 Answers  


Categories