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 / khurshid alam

sorry brother your simple mistake following this

printf("%d",a); // here semicolon(;) must be

now run your program

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a void pointer? When is a void pointer used?

1070


Can you please explain the scope of static variables?

1067


How arrays can be passed to a user defined function

1036


int far *near * p; means

3566


Is the exit() function same as the return statement? Explain.

1115


What are the types of type qualifiers in c?

1095


What is page thrashing?

1093


What is unary operator?

1115


What is the difference between array and pointer in c?

1177


When should you not use a type cast?

1136


What is the sizeof () operator?

1092


Explain 'bus error'?

1109


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1109


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1983


In c programming language, how many parameters can be passed to a function ?

1126