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 / atul shukla

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

result is for sure hello5
anywhere if braces () are used it uses stack to perform its
operation last open braces will sort first and
print 'hello'and printf return int value its protype is
int printf(const char *format [,argument,...]);
value return will be length of string thats 5
u can change hello to any other string it will print lenght
of string only

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by c what are the main characteristics of c language?

1033


How do you list a file’s date and time?

1070


Why void main is used in c?

1051


Why shouldn’t I start variable names with underscores?

1067


What is a struct c#?

1053


What is the code in while loop that returns the output of given code?

1996


application attempts to perform an operation?

1978


What are the types of arrays in c?

1181


Can the sizeof operator be used to tell the size of an array passed to a function?

1118


Tell me the use of bit field in c language?

1071


What is the best style for code layout in c?

1102


What is wrong with this initialization?

1007


What are different types of operators?

1044


What is a program flowchart and how does it help in writing a program?

1141


Which driver is a pure java driver

1616