Thursday, 19 July 2018

Some important basic question of C that you have to know

1.  What is history of C ?

C was developed in 1960 by " Dennis ritchie " in america. It was growth of two earlier language .

       CPL :  Combined programming language 
       Bcpl : Basics combined programming language

C is middle language because we can do programming high level as well as the low level.

2.  What is # include ?

# include is preprocessor directive , it acts as inclusion to include header file in a program.

3.  What is header file ?

Header file contain description about the library function used in c program. There are number f library which are used as according to the use of user .

Exam :     <stdio.h>
                 <math.h>

4.  What is main () ?

Operating system always starts the execution of program from the main (). A C program must contain one main().

5.  What is debugging ?

Debugging is method of detection of error and after detection there must be having correction of error. 

6.  What are variables ?

A variable is special types of identifiers which is used to include special types of information

7.  How to declare a variable ?  

Syntax :     data type variable name :
 Exam  :      int a ;
                   char ch ;
                  float a ;

8.  What do you mean by variable initialization ?

It means to assign a value to the variable for which ( = equal to ) operator is used .

9.  What are rule for declare a variable ?

a.  Variable name should not start with a number.

b.  The name of variable should not be greater than 8.

c.  Any reserve words can not be name of variable.

d.  In case of variable name hyphen (-) symbols is not allowed.

10. What is string ? 

String is collection of character.

11. what are some special symbols used in C ?

( ) :  Unparamaterized Function

(a) :  Para metrical Function

No comments:

Post a Comment

Featured post

Program to find maximum of three number using user define function in C++

A function can be define by the user as per the requirement of the user or programmer . To implement a user define function , a programmer ...