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 nested structure with example?

616


Explain data types & how many data types supported by c?

573


What is struct node in c?

612


What is typedef struct in c?

575


What is sizeof array in c?

588






What is difference between structure and union in c?

533


How can I do serial ("comm") port I/O?

679


Is array name a pointer?

595


Explain 'far' and 'near' pointers in c.

693


what is a constant pointer in C

664


What is structure packing in c?

596


What is a pointer variable in c language?

637


If null and 0 are equivalent as null pointer constants, which should I use?

571


can any one provide me the notes of data structure for ignou cs-62 paper

1694


What is the auto keyword good for?

615