can we print any string in c language without using
semicolon(;)(terminator) in whole program.

Answers were Sorted based on User's Feedback



can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / nitish_bhasin

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

Is This Answer Correct ?    54 Yes 11 No

can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / vinothkumar.r

#include<stdio.h>
int main()
{
while(printf("Hai")&&0){}
}

Is This Answer Correct ?    42 Yes 15 No

can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / abhradeep chatterjee

#include<stdio.h>
void main()
{
if(printf("Hello")){}
}
this is the correct answer.

Is This Answer Correct ?    22 Yes 4 No

can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / gauravjeet singh gill

#include<stdio.h>
void main()
{
while(printf("hello")?0:1)
{
}
}

Is This Answer Correct ?    20 Yes 5 No

can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / geeta

#include<stdio.h>
void main()
{
if(printf("Hello World!!!")!=0)
{}

}

Is This Answer Correct ?    11 Yes 3 No

can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / k satish kumar reddy

main()
{
switch(printf("hello "))
{
}
}

Is This Answer Correct ?    5 Yes 1 No

can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / vinnu bhardwaj

main()
{
if(printf("Hello world"))
{}
}
//Here the {} act as a blank compound statement. But it is
//not mandatory to put some simple statements in it which
//require a semicolon. There are many more such answers to
//this question but the basic funda will be same

Is This Answer Correct ?    5 Yes 5 No

can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / taruna chaudhary

#include<stdio.h>
void main()
{
clrscr();
if("printf(hello pushpendra)")
getch();
}

Is This Answer Correct ?    4 Yes 5 No

can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / praveen vinny

/*
What if I want to print the sum of two numbers inside a
string without using a semicolon
*/

#include<iostream.h>
void main()
{
int a,b;
if(cout<<"Please enter two numbers : ")
if(cin>>a>>b)
if(cout<<"Sum = "<<(a+b))
}

Is This Answer Correct ?    4 Yes 5 No

can we print any string in c language without using semicolon(;)(terminator) in whole program...

Answer / chandanakurukunda

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

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More C Interview Questions

Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

0 Answers  


What is pragma in c?

0 Answers  


What is data structure in c programming?

0 Answers  


C program to find all possible outcomes of a dice?

0 Answers  


How can you find out how much memory is available?

0 Answers  






main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }

4 Answers  


What is C language Terminator?

15 Answers   TCS,


what is the difference between strcpy() and memcpy() function?

2 Answers  


Why is it important to memset a variable, immediately after allocating memory to it ?

0 Answers  


What is volatile in c language?

2 Answers   HCL, TCS,


create a C program that displays one z,two y's,three x's until twenty six A's. plzz answer i need it tomorrow.

4 Answers  


What do header files do?

0 Answers  


Categories