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 is array within structure?

1131


Why does not c have an exponentiation operator?

1057


What is the difference between memcpy and memmove?

1039


What is break statement?

1131


What are qualifiers?

1056


What is a null pointer in c?

1240


Should a function contain a return statement if it does not return a value?

1089


What is the scope of static variable in c?

1028


formula to convert 2500mmh2o into m3/hr

1001


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2083


How macro execution is faster than function ?

1204


What is the difference between a string and an array?

1216


What is New modifiers?

1135


Write a program to swap two numbers without using third variable in c?

1138


What is the purpose of sprintf() function?

1133