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

Is c pass by value or reference?

587


What is const volatile variable in c?

565


simple program of graphics and their output display

1462


How do you search data in a data file using random access method?

821


What is the advantage of an array over individual variables?

728






What are the different file extensions involved when programming in C?

739


What is the use of #include in c?

568


Can two or more operators such as and be combined in a single line of program code?

799


Why is c platform dependent?

609


What is putchar() function?

623


What is the difference between struct and union in C?

559


Hai what is the different types of versions and their differences

1481


Where static variables are stored in memory in c?

515


What is string in c language?

617


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

927