Would you like to react to this message? Create an account in a few clicks or log in to continue.
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Wiki Search
Latest topics
» data mining and data warehousing
Printf() within a printf() EmptyMon May 20, 2013 3:30 pm by prabakumar

» mid questions
Printf() within a printf() EmptySat Apr 07, 2012 9:58 pm by ravitejachalla

» important questions
Printf() within a printf() EmptySat Apr 07, 2012 8:04 pm by tony

» racha blockbuster written all over. strong reports coming
Printf() within a printf() EmptyTue Apr 03, 2012 10:18 pm by tony

» celebration for 300 users
Printf() within a printf() EmptyTue Apr 03, 2012 9:36 pm by tony

» 8051 Microcontrollers
Printf() within a printf() EmptySun Feb 26, 2012 8:02 pm by shanthipriya

» panja video songs racha quality
Printf() within a printf() EmptySat Dec 17, 2011 1:21 am by tony

» first look of OO kodthaara ulikki padthaara?
Printf() within a printf() EmptyFri Dec 16, 2011 1:35 am by tony

» pawan kalyan panja HQ DVD quality rip
Printf() within a printf() EmptyThu Dec 15, 2011 4:22 pm by tony

» latest joke in movie circles
Printf() within a printf() EmptyWed Dec 14, 2011 8:39 pm by tony

March 2024
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Calendar Calendar

Statistics
We have 535 registered users
The newest registered user is jecase

Our users have posted a total of 478 messages in 434 subjects
Keywords

POLL
Your IP address

Printf() within a printf()

Go down

Printf() within a printf() Empty Printf() within a printf()

Post by Pruthvi Bharadwaj Mon Jul 07, 2008 7:32 pm

PROGRAM:
#include <stdio.h>
#include<conio.h>
void main()
{
printf("%d",printf("A2ZWEB"));
getch();
}

OUTPUT:A2ZWEB6

REASON: First the inner printf() is executed and then this printf() returns number of characters it had printed so second printf() prints 6.

NOTE: Always printf() returns number of characters it printed succesfully
Pruthvi Bharadwaj
Pruthvi Bharadwaj
Administrator
Administrator

Number of posts : 291
Age : 33
Location : Tirupati
Reputation : 1
Registration date : 2008-06-13

http://a2zweb.friendhood.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum