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 do you declare a variable that will hold string values?
#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }
12 Answers Capital IQ, Sasken,
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.
what is the difference between auto and static keywords
1 Answers cDot, College School Exams Tests, TCS,
What is fflush() function?
Explain the properties of union. What is the size of a union variable
What is self-referential structure in c programming?
write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]
why division operator not work in case of float constant?