int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?

Answers were Sorted based on User's Feedback



int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output? ..

Answer / shruti

Compilation error..

no. of arguments do not match the parameters..

Is This Answer Correct ?    8 Yes 15 No

int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output? ..

Answer / amit

declaration should be done separately.. ans:a=1

Is This Answer Correct ?    5 Yes 17 No

int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output? ..

Answer / raj

error

Is This Answer Correct ?    4 Yes 25 No

int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output? ..

Answer / rahul

1,2,3

Is This Answer Correct ?    12 Yes 47 No

Post New Answer

More C Interview Questions

How can you increase the size of a dynamically allocated array?

0 Answers   TISL,


how to find the binary of a number?

10 Answers   Infosys,


Can you add pointers together? Why would you?

0 Answers  


say the following declaration is correct nr not. int b=a,n=0;

4 Answers   Wipro,


main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }

8 Answers   Vector,






Do you know null pointer?

0 Answers  


proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?

7 Answers   Hughes,


Why is void main used?

0 Answers  


Program to simulate second clock

2 Answers  


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

0 Answers  


Why do we use namespace feature?

0 Answers  


Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?

3 Answers   HCL, TCS,


Categories