How can I make a program in c to print 'Hello' without
using semicolon in the code?
Answers were Sorted based on User's Feedback
Answer / jaya prakash
int main()
{
if(printf("Hello"))
{
//Null statement
}
}
| Is This Answer Correct ? | 51 Yes | 3 No |
Answer / madhu
int main()
{
if(printf("Hello"))
{
}
}
Answer 2nd is correct;
| Is This Answer Correct ? | 23 Yes | 1 No |
Answer / manjushree
#include<stdio.h>
#include<conio.h>
int main()
{
if(printf("Hello"))
{
}
getch();
}
// if u use while loop it goes for an infinite loop , so
better to use if condition
| Is This Answer Correct ? | 12 Yes | 3 No |
Answer / arvind kumar
int main()
{
while(printf("Arvind kumar C-DAC"))
{
}
return 0;
}
| Is This Answer Correct ? | 8 Yes | 4 No |
Answer / shabeer basha
#include<stdio.h>
#include<conio.h>
void main()
{
if(printf("Hellow"))
{
}
}
// you are use semicolon in your program//
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / rosaiah
int main()
{
if(printf("hello"))
{
\* blank*\
}
}
| Is This Answer Correct ? | 2 Yes | 1 No |
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Explain the use of keyword 'register' with respect to variables.
main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }
What is a scope resolution operator in c?
Explain how can I open a file so that other programs can update it at the same time?
How can I recover the file name given an open stream or file descriptor?
write a program to find out number of on bits in a number?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Why is extern used in c?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
How do you view the path?