Professional Documents
Culture Documents
C Language is a case sensitive & must be typed in lower case letters (small case
letters)
File name will be accepted in 12 characters first 8 character are primary words ninth
character is dot (.) next three character are extension.
DATAT TYPES:
Input and output function: This function ( ) exists in STDIO.H (standard input &
output) header file. This ( ) displays messages & variable value on the standard
output device (monitor).
Syntax: printf (message, conversion specification characters, new line characters,
variable list);
Example: printf (welcome to C programming);
Conversion specification characters:
Data read/data write in a memory block.
Example: char k= a
Printf (k value is %c, k);
Output: k value is a
\a beep sound
\b 1 character backspace
\\ inserts the backslash
\? inserts ?
\! inserts !
Start system
Press f8 button
Select command prompt only in menu
C: \> Tc
C: \ Tc \> Tc
Go to windows
Select c drive
Open Tc folder
Select tc.exe file
Escape
# include <stdio.h>
Main ( )
{
Printf (welcome to c program)
}
To save a program press F2 & give file name
To open a new program Alt F new
Compile (error rectification) F9 Alt+F9
Run Ctrl + F9
Output Alt + F5
New file Alt + &select new
If linker is there we must press F6
Open F3 already existing files (predefined files)
Clrscr ( ); > clears the whole screen & display our answer.
Getch ( ); > instead of pressing Alt + F5 we can use this.
Ctrl F1( ); > displays help.
Clrscr ( ); > this function exits in <conio.h>
<conio.h> > consol input & output
Getch ( ); > this function reads single character from the standard input device
without displaying on the monitor this function also exists in <conio.h> header file.
Write a program take two constant values calculate all arithmetic operation & display the
result?
Write a program to accept two no calculate all arithmetic operation? Use scanf for two
nos?
Write a program accept character display corresponding askey value of the characters?
Exercise
Write a program to display your address?
Write a program to display your Bio data?
Scanf ( )
This function exits in <stdio.h> header file. This function reads value from the standard
input output device into specified variable.
Syntax: scanf (conversion specification char, variable list);
& = ampersand