void main()
{
int c;
c=printf("Hello world");
printf("\n%d",c);
}
Answers were Sorted based on User's Feedback
Answer / vijeselvam
Hello world
11 /*if their is single space between the words that are
printed*/
12 /*if their is double space between the words that are
printed*/
| Is This Answer Correct ? | 2 Yes | 0 No |
How to return multiple values from a function?
main() { char *str1="abcd"; char str2[]="abcd"; printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd")); }
How to read a directory in a C program?
program to Reverse a linked list
12 Answers Aricent, Microsoft, Ness Technologies,
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; static *p[]={a,a+1,a+2}; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j), *(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i)); } }
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
how to swap 3 nos without using temporary variable
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
how to return a multiple value from a function?
main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit >> (i - (i -1))); } } a. 512, 256, 0, 0, 0 b. 256, 256, 0, 0, 0 c. 512, 512, 512, 512, 512 d. 256, 256, 256, 256, 256
main() { int a[10]; printf("%d",*a+1-*a+3); }