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

write a c program for swapping two strings using pointer

2630


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

1995


How would you obtain the current time and difference between two times?

1293


What is the difference between the = symbol and == symbol?

1118


What was noalias and what ever happened to it?

1045


Can you please explain the difference between strcpy() and memcpy() function?

1071


Explain the difference between #include "..." And #include <...> In c?

1029


Is c# a good language?

1011


What is 1f in c?

2658


What is the best way to store flag values in a program?

1081


What is variables in c?

1053


What is wild pointer in c with example?

1064


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1413


Tell me the use of bit field in c language?

1070


Where are some collections of useful code fragments and examples?

1162