CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS LANGUAGES C DETAILS
Question :
Write A Program With Out Using ;

Posted by: V.vivek varma on 1/5/2008

Contact V.vivek varma  Contact V.vivek varma
Category C Interview Questions
Rating (3.0) By 3 users
Added on 1/5/2008
Views 1779
Rate it!
Answers:

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.



 Posted by: Biplab    

Contact Biplab  Contact Biplab

#include<stdio.h>
void main()
{
if(printf(Program With Out semicolon))
{}
}



 Posted by: Biplab    

Contact Biplab  Contact Biplab

by using for loop,but we may not get o/p..but we can form a subroutine.



 Posted by: manoj    

Contact manoj  Contact manoj

#include<stdio.h>

main()
{
}

The above lines can be considered as a prg. it contains no errors



 Posted by: Pavithra Kumar S    

Contact Pavithra Kumar S  Contact Pavithra Kumar S

void main()
{
while(1){}
}



 Posted by: Riyaz Kesarani    

Contact Riyaz Kesarani  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.



 Posted by: Neha Vora    

Contact Neha Vora  Contact Neha Vora

your program wthout ';' is:-
#include<stdio.h>
void main(void)
{
}



 Posted by: gurpreet singh    

Contact gurpreet singh  Contact gurpreet singh

#include<stdio.h>
void main(void)
{
if(printf("No semicolon"))
{
}
}



 Posted by: Swamy    

Contact Swamy  Contact Swamy


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
What are the applications and advantages of C-language?
View Answer
A variable carries a value.(already assigned OR from Scanf..what ever the way). I want to know whether the variable is positive or negative.
Conditions:
-----------
1.NO looping logic should be used such as for ..while..etc.

2.should not use > or <.

3.should not use any numbers except 0.
We can use 0 and equality operator.
How to know the number is positive or negative?
View Answer
Define structural language and procedural language?
View Answer
Q.8 When a 'C' function call is made, the order in which parameters passed to the function are pushed into the stack is
(a) left to right
(b) right to left
(c) bigger variables are moved first than the smaller variables.
(d) smaller variables are moved first than the bigger ones
(c) none of the above.
View Answer
how do i get started for any project?
View Answer
What is the output of
void main()
{
int a = (1,2,3);
printf("%d",a);
}

with reason.
View Answer
Write Addition of two numbers using Bitwise operators.
View Answer
How much memory does a static variable takes?
View Answer
What is file pointer and its working method?
View Answer
How to get string in files and print the string in the reverse order?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/12656/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.72