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

what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);

2 Answers  


const int perplexed = 2; #define perplexed 3 main() { #ifdef perplexed #undef perplexed #define perplexed 4 #endif printf("%d",perplexed); } a. 0 b. 2 c. 4 d. none of the above

1 Answers   emc2, HCL,


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


Cau u say the output....?

1 Answers  


how to return a multiple value from a function?

2 Answers   Wipro,


hello sir,is there any function in C that can calculate number of digits in an int type variable,suppose:int a=123; 3 digits in a.what ll b answer?

6 Answers  


How can you relate the function with the structure? Explain with an appropriate example.

0 Answers  


main() { int i = 3; for (;i++=0;) printf(“%d”,i); }

1 Answers   CSC,


void main () { int x = 10; printf ("x = %d, y = %d", x,--x++); } a. 10, 10 b. 10, 9 c. 10, 11 d. none of the above

2 Answers   HCL,


Is the following code legal? typedef struct a { int x; aType *b; }aType

1 Answers  


Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.

2 Answers   Mentor Graphics, Microsoft,


Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.

21 Answers   ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,


Categories