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

what will be the output of this program........ main() { int a=2,b=4,c=6; printf("%d"); } why it gives the value of third variable.

6 Answers   HCL,


What is the difference between getch() and getche()?

1 Answers   NSPL,


What is nested structure in c?

0 Answers  


What is #include stdlib h?

0 Answers  


What functions are in conio h?

0 Answers  


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

0 Answers   Huawei,


what is the role you expect in software industry?

0 Answers   HCL,


A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.

2 Answers  


what is the different between if-else and switch statment (other than syntax)

26 Answers   CTS, Oracle, Scorpos,


What is the meaning of ?

0 Answers  


How to implement call back functions ?

3 Answers   HP,


What is the best organizational structure?

0 Answers  


Categories