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

wt is d full form of c

6 Answers   TCS, Wipro,


What is volatile in c language?

2 Answers   HCL, TCS,


Why do we need arrays in c?

0 Answers  


What extern c means?

0 Answers  


What is a static variable in c?

0 Answers  






I need to take a sentence from input and sort the words alphabetically using the C programming language. Note: This is C not C++. qsort and strtok not allowed

4 Answers   Aspire,


what is data structure

5 Answers   Maveric, TCS,


What's a good way to check for "close enough" floating-point equality?

0 Answers   Celstream,


What does nil mean in c?

0 Answers  


What is scope rule in c?

0 Answers  


What are the key features in c programming language?

0 Answers  


#include<stdio.h> #include<conio.h> void main() {clrscr(); char another='y'; int num; for(;another=='y';) { printf("Enter a number"); scanf("%d",&num); printf("squre of %d is %d",num,num*num); printf("\nwant to enter another number y/n"); scanf("%c",&another); } getch(); } the above code runs only one time.on entering 'y' the screen disappeares.what can i do?

3 Answers  


Categories