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 |
Why is event driven programming or procedural programming, better within specific scenario?
program to print upper & lower triangle of a matrix
How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include<stdio.h>...
What are data types in c language?
What is the advantage of c?
Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?
how does printf function work
What is structure padding and packing in c?
Question 1: You want to conduct a survey within your classroom, on the quality of canteen’s food. You ask each of your class fellows to rank the quality of food between 1 and 5 (1 representing excellent quality and 5 representing worst quality). During the survey, you make a list containing the roll# of student and the opinion given by that student. The list can be as follow Roll # Opinion 234 1 235 1 236 5 237 1 238 2 239 3 240 5 241 5 242 1 To get the results of the survey, you need to determine the frequency of each opinion value. The frequency of an opinion is determined by counting the number of students giving that opinion. For example, for the above list the frequency of opinion value 1 is 4 and frequency of opinion value 4 is 0. After getting the frequency of each opinion, you can easily judge about the quality of the food by seeing through the frequency of each opinion. You need to develop a program to calculate the results of this survey. The program inputs the opinion of 50 students and counts the frequency of each opinion. It then displays a report showing the frequency of each opinion. Sample output: Opinion Frequency Remarks 1 5 Excellent 2 10 Good 3 15 Normal 4 10 Bad 5 10 Really bad
What are # preprocessor operator in c?
Can a program have two main functions?
Explain null pointer.