/*what is the output for*/
void main()
{
int r;
printf("Naveen");
r=printf();
getch();
}
Answers were Sorted based on User's Feedback
Answer / prathiba
its a compile time error.bcoz r is of integer type.
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / srikanth
compile time error..r is of type integer,so the could is wrong
| Is This Answer Correct ? | 3 Yes | 1 No |
How will u find whether a linked list has a loop or not?
main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); }
main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }
How to use power function under linux environment.eg : for(i=1;i<=n;i++){ pow(-1,i-1)} since it alerts undefined reference to 'pow'.
C statement to copy a string without using loop and library function..
Print an integer using only putchar. Try doing it without using extra storage.
void main() { int i=5; printf("%d",i+++++i); }
main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000
how to concatenate the two strings