What is the purpose of Scanf Print, getchar, putchar,
function?

Answers were Sorted based on User's Feedback



What is the purpose of Scanf Print, getchar, putchar, function?..

Answer / vignesh1988i

scanf() is used to get the input from the user using the compailer.

printf() is used to output the messages given by the user in the output screen

getchar() is used to get a single character from the user.....

putchar() is used to output a single character and echo's in the output screen

Is This Answer Correct ?    94 Yes 7 No

What is the purpose of Scanf Print, getchar, putchar, function?..

Answer / bhushan deshmukh

C language is procedural language. It contain's system
function for I/O, These function useing in Input and
Output....

1. Scanf :- function using for formated input.. with
showing some formated output message...

2. Printf :- Function using for display formated output on
console...
3. Getchar() :- using for Get a only one character at one
time...

4. Putchar() :- Using for a single character without
formated...

Is This Answer Correct ?    40 Yes 6 No

What is the purpose of Scanf Print, getchar, putchar, function?..

Answer / kumutha

sacnf()- input data can be entered into the computer using
the standard input'c' library function........

printf()- output data or result of an operation can be
displayed from the computer to a standard output device
using the library function........

getchar()- single character can be given to the computer
using 'c' input library function........

putchar()- used to display one character at a time on the
standard output device.........

Is This Answer Correct ?    29 Yes 3 No

Post New Answer

More C Interview Questions

How to compare array with pointer in c?

0 Answers  


Why doesnt long int work?

0 Answers  


What is the deal on sprintf_s return value?

0 Answers  


Differentiate call by value and call by reference?

0 Answers   Cyient,


Write a program to know whether the input number is an armstrong number.

0 Answers   Wipro,






Write a program which take a integer from user and tell whether the given variable is squar of some number or not. eg: is this number is 1,4,9,16... or not

9 Answers   Alcatel,


2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }

1 Answers   Wipro,


what is ram?

3 Answers   TCS,


what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;

2 Answers   Google,


Why is it important to memset a variable, immediately after allocating memory to it ?

0 Answers  


Explain the ternary tree?

0 Answers  


Explain how does flowchart help in writing a program?

0 Answers  


Categories