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 / anshukumarsrivatsva.

a c program to prrint a string without using a semicolon,
#include<stdio.h>
#include<conio.h>
void main()
{
if(printf("allahabad is a sangam city))
getch();
}

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

Write the test cases for checking a variable having value in range -10.0 to +10.0?

0 Answers   Bosch,


write a recursive program in'c'to find whether a given five digit number is a palindrome or not

2 Answers  


Give the logic for this #include<stdio.h> #include<conio.h> void main() { clrscr(); int a=10,b; b=++a + ++a; printf("%d", b); getch(); } Output: 24......How?

2 Answers   Accenture,


Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.

3 Answers   SilverKey,


what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

7 Answers  


How many types of operator or there in c?

0 Answers  


pointer_variable=(typecasting datatype*)malloc(sizeof(datatype)); This is the syntax for malloc?Please explain this,how it work with an example?

2 Answers   eClerx, Excel, kenexa,


Explain what is wrong with this program statement?

0 Answers  


What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }

4 Answers   ADITI,


write a program to find the given number is prime or not

2 Answers   Accenture, Vasutech,


What is dangling pointer in c?

0 Answers  


C language questions for civil engineering

0 Answers   Tech Mahindra,


Categories