/*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

how to delete an element in an array

2 Answers   IBM,


To reverse an entire text file into another text file.... get d file names in cmd line

0 Answers   Subex,


char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }

1 Answers  


union u { struct st { int i : 4; int j : 4; int k : 4; int l; }st; int i; }u; main() { u.i = 100; printf("%d, %d, %d",u.i, u.st.i, u.st.l); } a. 4, 4, 0 b. 0, 0, 0 c. 100, 4, 0 d. 40, 4, 0

1 Answers   HCL,


could you please send the program code for multiplying sparse matrix in c????

0 Answers  






Write a procedure to implement highlight as a blinking operation

2 Answers  


#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }

2 Answers   CNSI,


what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }

6 Answers   CSC, IIIT,


main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }

1 Answers  


What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;

1 Answers  


main() { int i=5; printf("%d",++i++); }

1 Answers  


Program to Delete an element from a doubly linked list.

4 Answers   College School Exams Tests, Infosys,


Categories