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?

Answer Posted / milan

it will return hello5,firstly the inner printf executes
print the hello and return the number of characters printed
that is 5 which get printed by outer printf...
More info at:
http://clanguagestuff.blogspot.com/2011/02/what-printf-returns.html

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is main is user defined function?

1159


What is the advantage of c?

1133


What is #line?

1062


Write a program to print fibonacci series without using recursion?

1150


What does return 1 means in c?

1076


Why n++ execute faster than n+1 ?

3024


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15821


What is the general form of #line preprocessor?

1005


Find MAXIMUM of three distinct integers using a single C statement

1071


What are control structures? What are the different types?

1095


Why is this loop always executing once?

1064


What are the features of c languages?

1107


What is the general form of function in c?

1022


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

1135


Why is void main used?

1103