write c program without semicolon

Answers were Sorted based on User's Feedback



write c program without semicolon..

Answer / rockabhi

int main()
{
if (printf(" d" Hello"))
{
// EMPTY
}
}

Is This Answer Correct ?    38 Yes 11 No

write c program without semicolon..

Answer / s.venmathi

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

Is This Answer Correct ?    20 Yes 0 No

write c program without semicolon..

Answer / ramya

main
{
if(printf("%d %d %d",10,010,0x0))
{
}
}
o/p:10,8,16

Is This Answer Correct ?    6 Yes 1 No

write c program without semicolon..

Answer / sumit

int main()
{
if(printf("hello"))
{
}
}

Is This Answer Correct ?    4 Yes 0 No

write c program without semicolon..

Answer / saurabh rakhecha

int main()
{
if (printf(" Hello"))
{
// EMPTY
}
}

Is This Answer Correct ?    4 Yes 1 No

write c program without semicolon..

Answer / saranya

#include<iostream.h>
#include<conio.h>
int main()
(
if(printf("welcome"))
}

Is This Answer Correct ?    9 Yes 7 No

write c program without semicolon..

Answer / ramya

#include<stdio.h>
void main()
{
if(printf("sum=%d",(10+20))
{
}
}

Is This Answer Correct ?    1 Yes 0 No

write c program without semicolon..

Answer / priyanka mali

void main()
{
}

Is This Answer Correct ?    1 Yes 0 No

write c program without semicolon..

Answer / ashu

c program

Is This Answer Correct ?    5 Yes 5 No

write c program without semicolon..

Answer / anu

#include<stdio.h>
#include<conio.h>
#define SEMICOLON ;
void main()
{
printf("hELLO") SEMICOLON
getch() SEMICOLON
}

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

will the program compile? int i; scanf(“%d”,i); printf(“%d”,i);

3 Answers  


When is a “switch” statement preferable over an “if” statement?

0 Answers  


What is getch c?

0 Answers  


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

0 Answers  


what is pointer ?

10 Answers   Kernex Micro Systems,


Tell me a C program to display the following Output? 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5

3 Answers  


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

0 Answers  


How does free() know explain how much memory to release?

0 Answers  


What is the difference between int main and void main?

0 Answers  


WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?

4 Answers  


Multiply an Integer Number by 2 Without Using Multiplication Operator

0 Answers  


1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)

12 Answers   Eskom, TCS,


Categories