ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
Which is not valid in C?


		

	1) class aClass{public:int x;} 	 


	2) /* A comment */ 	 


	3) char x=12; 	 


 Question Submitted By :: Viju
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
Answer
# 1
1) class aclass{public:int x;}
 
Is This Answer Correct ?    5 Yes 0 No
Deepthi
 
  Re: Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
Answer
# 2
class aClass{public:int x;}
 
Is This Answer Correct ?    5 Yes 0 No
K.kavitha
 
 
 
  Re: Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
Answer
# 3
1) class aClass{public:int x;}
 
Is This Answer Correct ?    2 Yes 0 No
Bhavesh Kashikar
 
  Re: Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
Answer
# 4
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 ?    0 Yes 1 No
Sriharsha
 
  Re: Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
Answer
# 5
1) class aClass{public:int x;} 
3) char x=12;

these twoo are not valid in c.
 
Is This Answer Correct ?    0 Yes 0 No
Sourisengupta
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
What are volatile variables?  1
what is dangling pointer? LG-Soft1
I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.  1
how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y TCS3
How to add two numbers with using function?  3
1,4,8,13,21,30,36,45,54,63,73,?,?. Franklin-Templeton5
what is a far pointer TCS9
how does printf function work  1
pick out the odd one out of the following a.malloc() b.calloc() c.free() d.realloc() TCS1
what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }  7
how to make program without <> in library. ADITI1
What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value. TCS7
dennis ritchie invented C language in AT&T bell laboratory what is the extension of AT&T?  1
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); } Wipro1
Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE; Accenture4
WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES  1
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); } ADITI5
what is the difference between declaration ,defenetion and initialization of a variable? LG-Soft5
write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.  4
How can I get Single byte from 'int' type variable? Can we alter single bit or multiple bits in int type variable? if so, How?  2
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com