1. main()
{
printf("%d",printf("HelloSoft"));
} Output?

Answers were Sorted based on User's Feedback



1. main() { printf("%d",printf("HelloSoft")); } Output? ..

Answer / sandy

Upon a successful return, the printf() function returns the
number of characters printed.

Answer: HelloSoft9

Is This Answer Correct ?    39 Yes 2 No

1. main() { printf("%d",printf("HelloSoft")); } Output? ..

Answer / unknown

as %d is used for int and "hellosoft" is char , error will
prevail.

Is This Answer Correct ?    2 Yes 8 No

1. main() { printf("%d",printf("HelloSoft")); } Output? ..

Answer / micheal b

Hello soft

Is This Answer Correct ?    1 Yes 18 No

Post New Answer

More C Interview Questions

Why doesnt long int work?

0 Answers  


What does %d do?

0 Answers  


In which header file is the null macro defined?

0 Answers  


What are structure types in C?

0 Answers  


Which is an example of a structural homology?

0 Answers  






Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

0 Answers   Wipro,


main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }

2 Answers   Vector, Vector India,


which header file contains main() function in c?

17 Answers   Google, HCL, TCS,


What are nested functions in c?

0 Answers  


What is C language Terminator?

15 Answers   TCS,


discuss the steps needed to get a program from source code to executable in a system?

1 Answers  


Do you know the use of 'auto' keyword?

0 Answers  


Categories