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
What is a void pointer? When is a void pointer used?
Can you please explain the scope of static variables?
How arrays can be passed to a user defined function
int far *near * p; means
Is the exit() function same as the return statement? Explain.
What are the types of type qualifiers in c?
What is page thrashing?
What is unary operator?
What is the difference between array and pointer in c?
When should you not use a type cast?
What is the sizeof () operator?
Explain 'bus error'?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
In c programming language, how many parameters can be passed to a function ?