Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


printf("%d",(printf("Hello")); What it returns?

Answers were Sorted based on User's Feedback



printf("%d",(printf("Hello")); What it returns? ..

Answer / aju.b

printf("%d",(printf("Hello")));

Result is Hello5

Is This Answer Correct ?    175 Yes 15 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / vikas pawar

printf("%d",(printf("Hello"));


Result is Hello5
Inner printf prints Hello and outer printf gives length of
string i.e. 5

Is This Answer Correct ?    69 Yes 8 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / srinivasa. p

Hello5

Printf() return number character print on STD::out

Is This Answer Correct ?    30 Yes 10 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / anil kumar

Result is Hello5
Inner printf prints Hello and outer printf gives length of
string i.e. 5

Is This Answer Correct ?    14 Yes 2 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / amit shrivastava

it will show hello5
hello from the inner printf and 5 value return by the outer
printf function,as printf return int value of the string
and in the example there is 5 wrds so the lenght is 5 which
it return.

Is This Answer Correct ?    10 Yes 2 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / varun

error bcz 1 bracket is missing.
if corected
output will b

Hello5

Is This Answer Correct ?    12 Yes 4 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / anupam sen

printf function returns the number of character it prints
so output:Hello5

Is This Answer Correct ?    5 Yes 0 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / vivek_akathara

if the statement is as shown above then it will show an
error due to incomplete parentheses(there are 3 opening and
2 closing)

once that is corrected then you will get the output as
hello5 for the reasons explained above.

Is This Answer Correct ?    7 Yes 4 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / dally

It will print hello with length of 5.Because return value of
printf is length of that string.

Is This Answer Correct ?    2 Yes 0 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / dinesh gupta

error
bcos one bracket is missing
if make correction
then out put is ........ hello5
reason..inner statement print hello and as wellas returns the lenth of the string to outer print statement,which give 5

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

What is the use of pragma in embedded c?

0 Answers  


main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above

6 Answers  


what is the similarities between. system call and library function?

1 Answers   Wipro,


WHAT IS HIGH LEVEL LANGUAGE?

2 Answers  


What is #line used for?

0 Answers  


write a function to find whether a string is palindrome or not and how many palindrome this string contain?

2 Answers   Aptech,


how to swap 2 numbers in a single statement?

3 Answers  


What are two dimensional arrays alternatively called as?

0 Answers  


What do you mean by command line argument?

0 Answers   TCS,


What is merge sort in c?

0 Answers  


output for following code??? main() { int x=2,y,z; x*=3+2; printf("1.%d\n",x); x*=y=z=4; printf("2.%d %d %d\n",x,y,z); x=y==z; printf("3.%d\n",x); x==(y=z); printf("%d",x); }

2 Answers   Elysium,


How do you construct an increment statement or decrement statement in C?

0 Answers  


Categories