Qus. 01: In C language, define input & output operations and management of them.
Ans. : Input & output operations : The operations which took place in order to take data and make the display of the processed information are known as input & output operations.
Management of input & output operations : In C language, in general, user use scanf and printf functions for input and output purpose respectively. The proper uses of these functions are termed management of input & output operation. There are also many functions which are used in C programming.
Qus. 02: Write down the character tests functions and their tests.
Ans. : In the following table the required functions and their tests are given.
Function | Test |
isalnum(c) | Is c an alphanumeric character? |
isalpha(c) | Is c an alphabetic character? |
isdigit(c) | Is c a digit? |
islower(c) | Is c a lower case letter? |
isprint(c) | Is c a printable character? |
ispunct(c) | Is c a punctuation mark? |
isspace(c) | Is c a white space character? |
isupper(c) | Is c an upper case later? |
Qus. 03: Write down the commonly used scanf format codes ?
Ans. : In the following table the required format codes and their meanings are given.
Code | Meanings |
%c | read a single character |
%d | read a decimal integer |
%e | read a floating point value |
%f | read a floating point value |
%g | read a floating point value |
%h | read a short integer |
%i | read decimal, hexadecimal or octal integer |
%o | read an octal integer |
%s | read a string |
%u | read an unsigned decimal integer |
%x | read a hexadecimal integer |
%[....] | read a string of word(s) |
ক্রেডিট : তন্ময় চক্রবর্তী
1 comments:
Well, you have mentioned the credit. Thats ok, but you could have told once that you are about to copy all my notes here as a book.
Its not a book, its my notes on C programming based on the book of C programming by E. Balaguruswamy.
Ok. Bye.
01. Overview of C
02. Constants, Variables & Data Types
03. Operators & Expressions
04. Managing I/O Operations
05. Decision Making & Branching
06. Decision Making & Looping
07. Arrays
08. User Defined Functions