Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Which is not valid in C?




1) class aClass{public:int x;}


2) /* A comment */


3) char x=12;


Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of variables in c?

989


How can I pad a string to a known length?

984


What is the difference between malloc() and calloc() function in c language?

1039


Write a code on reverse string and its complexity.

992


Explain how can you tell whether two strings are the same?

984


What’s a signal? Explain what do I use signals for?

1068


Are c and c++ the same?

1012


Write a Program to accept different goods with the number, price and date of purchase and display them

6160


What are the Advantages of using macro

1127


What are the storage classes in C?

1110


Is c dynamically typed?

1105


What are the different data types in C?

1156


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1215


What standard functions are available to manipulate strings?

1094


Find MAXIMUM of three distinct integers using a single C statement

1018