write c program without semicolon
Answers were Sorted based on User's Feedback
Answer / rockabhi
int main()
{
if (printf(" d" Hello"))
{
// EMPTY
}
}
Is This Answer Correct ? | 38 Yes | 11 No |
Answer / s.venmathi
#include<stdio.h>
#include<conio.h>
void main()
{
if(printf("HELLO"))
{
}
}
Is This Answer Correct ? | 20 Yes | 0 No |
Answer / ramya
main
{
if(printf("%d %d %d",10,010,0x0))
{
}
}
o/p:10,8,16
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / saurabh rakhecha
int main()
{
if (printf(" Hello"))
{
// EMPTY
}
}
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / saranya
#include<iostream.h>
#include<conio.h>
int main()
(
if(printf("welcome"))
}
Is This Answer Correct ? | 9 Yes | 7 No |
Answer / ramya
#include<stdio.h>
void main()
{
if(printf("sum=%d",(10+20))
{
}
}
Is This Answer Correct ? | 1 Yes | 0 No |
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 |
will the program compile? int i; scanf(“%d”,i); printf(“%d”,i);
When is a “switch” statement preferable over an “if” statement?
What is getch c?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
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
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
How does free() know explain how much memory to release?
What is the difference between int main and void main?
WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?
Multiply an Integer Number by 2 Without Using Multiplication Operator
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 ”)