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 does dm mean sexually?

1269


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

2624


What is a macro, and explain how do you use it?

1031


What is extern variable in c with example?

967


What is static and auto variables in c?

1036


What is 'bus error'?

1106


What is static function in c?

1076


Describe the order of precedence with regards to operators in C.

1011


What is the use of typedef in structure in c?

930


Explain how can I pad a string to a known length?

1139


Is boolean a datatype in c?

1021


Tell me when is a void pointer used?

1119


What is else if ladder?

973


What are multidimensional arrays?

1078


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1473