IT Community - Software Programming, Web Development and Technical Support

printf(), scanf() functions

This is a discussion on printf(), scanf() functions within the C and C++ Programming forums, part of the Software Development category; Hui buddies can anybody let me know what are returned by printf(), scanf() functions,if they return anything means what ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-14-2007, 12:35 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Post printf(), scanf() functions

Hui buddies can anybody let me know what are returned by printf(), scanf() functions,if they return anything means what are that?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-14-2007, 01:10 AM
seesamjagan seesamjagan is offline
D-Web Programmer
 
Join Date: Aug 2007
Location: Chennai
Posts: 66
seesamjagan is on a distinguished road
Send a message via AIM to seesamjagan Send a message via Yahoo to seesamjagan
Post Re: printf(), scanf() functions

Hi buddy,

both the functions will return an int value

printf() - no. of values successfully printed
scanf() - no. of values successfully scaned

example:

printf("No of argument received: " %d",scanf("%d,%f",&i,&f));

o/p:
No of argument received: 2
__________________
SeeSamJagan
- Sky is not the "LIMIT", Death is not the END, There is still something beyond....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/c-c-programming/3302-printf-scanf-functions.html
Posted By For Type Date
Java: Blogs, Photos, Videos and more on Technorati This thread Refback 08-14-2007 12:44 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sql functions itbarota Database Support 11 02-29-2008 02:08 AM
What are Virtual Functions? How to implement virtual functions in "C"? Sabari C and C++ Programming 4 09-10-2007 11:35 PM
Difference between "printf" and "sprintf". Sabari C and C++ Programming 1 07-23-2007 06:23 AM
What is the output of printf("%d") Sabari C and C++ Programming 1 07-23-2007 05:59 AM
printf() and scanf() functions ! in C++ Sabari C and C++ Programming 1 07-17-2007 04:13 AM


All times are GMT -7. The time now is 10:15 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0