Tuesday, September 21, 2010
how to develop a c program short using semicolon(;)?
how to develop a c program short using semicolon(;)?
Semicolon is a terminator of a statement.... Without semicolon the 'c' compiler dosn't comprehend the statement.... why u develope a c program without using semicolon? Pls correspondence me
The semicolon delimits adjectives executable statements in C so you're not going to know how to write anything interesting without using it. If you don't approaching semicolons try using Visual Basic or some other language.
hi, semicolon is mandatory but if u want to avoid it again. U can make a small entry. #define ; ANYTHING
now when u want to finish your statement , a short time ago write ANYTHING.
Prabhat Kumar
This is becoming quite a adjectives question at the moment.... And here's how u do it -
1) First is a rather fooling the compiler sort of mode in which u pocket a working C program save it as a header directory and then use #include<baptize of that file> in another program as the lone statement. That way the foremost program has merely one line #include and no semicolon but the program can run from the header wallet
2) the other way and the right answer would be to only just put a statement in statements resembling if or while or for.
eg.
#include<stdio.h>
void main()
{
if(printf("hey this works"))
{}
}
OR
invalid main()
{
while(printf"This one too : Hope u get the idea"))
{}
}
Happy programming... :)
hi,if you want to write a program next to out using ; in header profile just u outline #DEFINE ;OR SOMETHING ELSE IT WILL SOLVE UR PROBLEM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment