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...

when i declare as:
void main()
{
clrscr();
int a=10;
printf("%d",a)
}
my problem that why generate a error in above programs.
please tell me answer seriously .

Answer Posted / swaroop

clrscr()
should be after the declaration of variables

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a example of a variable?

947


Can the sizeof operator be used to tell the size of an array passed to a function?

1054


What are the properties of union in c?

993


what will be the output for the following main() { printf("hi" "hello"); }

10785


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

2199


What is C language ?

1899


Can we declare variables anywhere in c?

946


Can you return null in c?

1093


Explain is it valid to address one element beyond the end of an array?

1147


What is the advantage of a random access file?

1126


What is the use of ?

990


What is string function in c?

945


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

974


Explain what is wrong with this program statement? Void = 10;

1191


How do I copy files?

993