Skip to content


getchar() function?

This section of C++ contains some very interesting and challenging problems. Try to solve them in order to test your programming skills.

getchar() function?

Postby shariquekhan » December 10th, 2008, 2:44 pm

salam. plz tell me what getchar() can do for me? I read help of C-language but I'm not satisfied with that information. samajh to aya hai laikin agar kisi ko ziada info hai is function k bare to plz share kare. One more I want to ask what is line buffered? mai jab is function ki help parh raha tha to us me ye line parhi k getchar() line buffered? waise buffers kya hote hain? plz tell me about that.One more thing I want to ask what is stdin,stdout,stderror. If anybody know plz explain this. I'm waiting for reply.thanks in advance
shariquekhan
 
Posts: 8
Joined: April 16th, 2008, 10:34 am


Re: getchar() function?

Postby Web Guru » December 15th, 2008, 3:45 pm

The function "getchar()" is somewhat like "getch()" function which reads a single character from the user .. this is normally used in some kind of loop .. so when any key from keyboard is presses, its code is returned by this function, which then you can use as per your needs.

The "Stdin" means the standard input device which is normally "Keyboard" .. "Stdout" means Standard Output Device which is "Monitor"
User avatar
Web Guru
 
Posts: 95
Joined: March 24th, 2008, 7:59 am
Location: Lahore, Pakistan


Return to Board index

Return to Miscellaneous / Challenging Problems

Who is online

Users browsing this forum: No registered users and 0 guests