Saturday, 21 July 2018

Basic function and operator used in C programming

1. What are input statement in C ?

Input statement are used to input the data from the user .some important input function are as the follows :

(a).  getchar () : This function is used to input a character from the user .

 Syntax :   character variable name = getchar () ;

(b).  gets () :  This function is used to input string from the user .

Syntax :      string (" character variable name ") ;
                    gets (" character variable name ") ;

(c). scanf () :  This is used to input any types of function.

Syntax :   scanf ("format specifier", & variable name )

2. What are output statement in c ?

Output statement are used to print the data on the output screen.some important function are as follows.

(a). Putchar () :  This function is used to output a character on the screen.

Syntax :  putchar (" character variable ") ;

(b).  puts ()  :  This function is used to displays string on the output screen.

Syntax :  puts (" string variable name")

(c). printf ()  :  This function is used to displays any types of data on the output screen.

Syntax :  printf (" any statement ")
                  or
               printf (" format specifiers ", variable name ) ;

3. what are extension of operating system ?

Ms word = .doc
Ms excel = .xls
Ms powerpoint = .ppt
C files = .c
c++ files = .ccp
database = .dbf

4. What are different keys used in C programming?

ALT + F = Find
ALT + F9 = compile
ALT + S = Save
ALT + F5 = Full or Short 
Flash + N = New Line
Ctrl + F9 = Run

Void main () :  To return not any value

clrscr () ;  This function is used to clear the screen.

                    

No comments:

Post a Comment

Featured post

Kalgudi Interview Round!!

Those who cleared the second round of kalgudi got an email from exceller to complete their Kalgudi Interview Round. So here we will discuss ...