Question:
Write A Program With Out Using ;
Answer:
void main() { int i; if(printf("Program with out Semicolon")) i=0; } //Explanation// As Printf function return int(no of charecter),so The Value of i must be =0; And program should be work with out semicolon.
Source: CoolInterview.com
Answered by: Biplab | Date: 3/24/2008
| Contact Biplab
#include<stdio.h> void main() { if(printf(Program With Out semicolon)) {} } Source: CoolInterview.com
Answered by: Biplab | Date: 4/2/2008
| Contact Biplab
by using for loop,but we may not get o/p..but we can form a subroutine. Source: CoolInterview.com
Answered by: manoj | Date: 4/13/2008
| Contact manoj
#include<stdio.h>
main() { }
The above lines can be considered as a prg. it contains no errors Source: CoolInterview.com
Answered by: Pavithra Kumar S | Date: 4/23/2008
| Contact Pavithra Kumar S
void main() { while(1){} } Source: CoolInterview.com
Answered by: Riyaz Kesarani | Date: 5/13/2008
| Contact Riyaz Kesarani
I think it cant be possible to write program without semicolon.We can write printf statement without semicolon.But in variable declaration we have to use semicolon and variable declaration also considered as part of program. Source: CoolInterview.com
Answered by: Neha Vora | Date: 5/15/2008
| Contact Neha Vora
your program wthout ';' is:- #include<stdio.h> void main(void) { } Source: CoolInterview.com
Answered by: gurpreet singh | Date: 8/5/2008
| Contact gurpreet singh
#include<stdio.h> void main(void) { if(printf("No semicolon")) { } } Source: CoolInterview.com
Answered by: Swamy | Date: 2/6/2010
| Contact Swamy
Void Main() { if(printf(" c pgm without semicolon")) { }
} Source: CoolInterview.com
Answered by: Saidesh | Date: 8/15/2010
| Contact Saidesh
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|