/*what is the output for*/
void main()
{
int r;
printf("Naveen");
r=printf();
getch();
}

Answers were Sorted based on User's Feedback



/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getc..

Answer / sudhanshu_kmr

compile error......

Is This Answer Correct ?    9 Yes 3 No

/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getc..

Answer / sudarson

Too few arquments to function ---->printf()

Is This Answer Correct ?    4 Yes 1 No

/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getc..

Answer / prathiba

its a compile time error.bcoz r is of integer type.

Is This Answer Correct ?    7 Yes 5 No

/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getc..

Answer / srikanth

compile time error..r is of type integer,so the could is wrong

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Code Interview Questions

struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error

3 Answers   HCL,


Write a program that find and print how many odd numbers in a binary tree

1 Answers  


PROG. TO PRODUCE 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 Answers  


Sir... please give some important coding questions asked by product companies..

0 Answers  


abcdedcba abc cba ab ba a a

2 Answers  






¦void main() ¦{ ¦int i=10,j; ¦ j=i+++i+++i; ¦printf("%d",j); ¦getch(); ¦} ¦ output:-30 but in same question if we write as- ¦void main() ¦{ ¦int i=10; ¦ int j=i+++i+++i; ¦printf("%d",j); ¦getch(); ¦} ¦ output:-33 why output is changed from 30 to 33. Can any body answer...

3 Answers  


main() { int k=1; printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE"); }

1 Answers  


main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above

5 Answers   HCL,


void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }

3 Answers  


main() { extern int i; i=20; printf("%d",i); }

1 Answers   Value Labs,


main() { int i =10, j = 20; clrscr(); printf("%d, %d, ", j-- , --i); printf("%d, %d ", j++ , ++i); } a. 20, 10, 20, 10 b. 20, 9, 20, 10 c. 20, 9, 19, 10 d. 19, 9, 20, 10

4 Answers   HCL,


#include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); }

1 Answers  


Categories