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

respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"

1 Answers   Genpact, Ozdocs,


main(){ char a[100]; a[0]='a';a[1]]='b';a[2]='c';a[4]='d'; abc(a); } abc(char a[]){ a++; printf("%c",*a); a++; printf("%c",*a); }

2 Answers  


main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i<n; ++i) { printf(“%s\n”,x); x++; } }

2 Answers  


How we print the table of 3 using for loop in c programing?

7 Answers  


#include<stdio.h> int main() { int a=3,post,pre; post= a++ * a++ * a++; a=3; pre= ++a * ++a * ++a; printf("post=%d pre=%d",post,pre); return 0; }

3 Answers  






write a origram swaoing valu without 3rd variable

2 Answers  


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); }

1 Answers  


#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

4 Answers   Google, HCL, Quick Heal, WTF,


#define a 10 void foo() { #undef a #define a 50 } int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } explain the answer

1 Answers  


how to check whether a linked list is circular.

11 Answers   Microsoft,


void main() { int c; c=printf("Hello world"); printf("\n%d",c); }

2 Answers  


How do you create a really large matrix (i.e. 3500x3500) in C without having the program crash? I can only reach up to 2500. It must have something to do with lack of memory. Please help!

1 Answers  


Categories