answersLogoWhite

0


Best Answer

Getchar:-Reading a single character can be done by using the function getchar.

Syntax:- variable_name = getchar ( );

Variable_name is a valid 'c' name that has been declared as char type. When this statement is encountered, the computer waits until a key is pressed and then assigns this character as a value to getchar function. Since getchar is used on the right hand side of an assignment statement, the character value of getchar is in turn assigned to the variable_name on the left. The getchar function may be called successively to read the characters contained in a line of text. Getchar accepts space character.

Scanf ("control strings",arg1, arg2, ………… argn);

The control string specifies the field format in which the data is to be entered and the arguments arg 1, arg 2, arg n specify the address of locations where the data is stored. Scanf does not accept space character.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How Can We Solve The Limitation Of Getchar And Scan Function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the function of brake scan tool?

The function of a brake scan tool is used to scan the ABS codes. The ABS codes will help diagnose the problem one is having with their brakes. A brake scan tool can be purchased at any parts store such as NAPA.


What is a Renal scan with lasik?

A renal scan with lasik is a mis spelling of a renal scan with lasix, a diuretic, used to increase renal function.


How do you reconfigure the front control module in a 2011 jeep wrangler?

That is a dealer only function. They have to use there scan tool and connect to Chrysler through the internet.That is a dealer only function. They have to use there scan tool and connect to Chrysler through the internet.


What are the example of turbo c with using scan and print function?

#include<stdio.h> Void main() { int a,b; printf("Enter a Number: "); // for print function as an out-put scanf("%d",&a); //for scan function as in input /* Here we can use print function once again as: */ a=a++; printf("%d",a); }


How would you solve the problem of your avast antivirus which does not scan all the files of your computer and shows in results exception in polymorph virus code?

How would you solve the problem of your avast anti-virus which does not scan all the files of your computer and shows in results exception in polymorph virus code?"


How do you solve virus problem?

You remove the virus. Reboot your computer into Safe Mode and scan with your Anti-Virus software.


What is the function of the LCD screen display on this Lexmark machine?

It reports printer status and also ink levels buttons allow to scan function.


What is the function of OCR?

The function of OCR, input device is to scan the characters on the page, one by one and then compares them with characters stored in the computer's memory.


What can a function be defined as?

Definition: By function We Means In C which Perform Some Specific Task..e.g Print Scan etc. The function Should Inclosed of Parantheses. There Are two Types Of Function 1.User Define Function 2.Built in function


What are the functions of the tools?

The function of a brake scan tool is used to scan the ABS codes. The ABS codes will help diagnose the problem one is having with their brakes. A brake scan tool can be purchased at any parts store such as NAPA.


What are the most common presurgery tests?

blood tests; urine tests; chest x rays; pulmonary function tests; computed tomography scan (CT or CAT scan)


What is administered in a renal scan with captopril?

In a renal scan with captopril, the patient is administered a small amount of captopril, which is a medication that helps to detect narrowing of the renal arteries. The scan is used to evaluate kidney function and assess for potential renovascular hypertension.