What is the purpose of Scanf Print, getchar, putchar,
function?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is local and global variable in c?
Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Write a program to print the prime numbers from 1 to 100?
what is a static function
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
Write a code to remove duplicates in a string.
what will happen if you free a pointer twice after allocating memory dynamically ?
sum of two integers values only other then integer it should print invalid input.
What are the differences between Structures and Arrays?
What are valid signatures for the Main function?