Skip to main content

Posts

Briefly explain the different form of main() function used in C.

The main is a part of every C program permits different types of main statement. Following types allowed- 1.main () 2. int main () 3. void main () 4. main(void) 5. void main(void) 6. int main(void) The empty pair of parentheses that the functions has no argument.we may also specify the keyword void means that the function does not return any information to the operating system and integer means that the function return an integer value to the operating system. When integer is speciffed, the last statement of the program must be return "0". ------------------------------------- Posted By - Sadia Afrin Hiya

What is structured programming ?

It is a programming method which aimed at improving quality, clarity and access time of Computer program by the use of block structures, subroutines, for and while loops. These programming features will be helpfül when concept of exception handing is needed in the program. It uses various control strúctures, sub routines, blocks and theorem. The theorems involved in structure programming are Sequence, Selection, Iteration and Recursion. Most ot the programming language uses strúctured programming language features such as ALGOL, Pascal, PL/I, Ada, C, etc. The structure programming enforces a logical structure on the program being written to make it more efficient and easy to modify and understand. What is Structured Programming Language is explained in simple and precise manner ------------------------------------- Posted By - Sadia Afrin Hiya

Distinguish between algorithm and flow-chart.

Differences between algorithm and flowchart : 1. An algorithm involves a combination of sequential steps to interpret the logic of the solution. In contrast, a flowchart is the pictorial illustration of the algorithm. 2. A flow chart is more understandable as compared to the algorithm. 3. The algorithm is written in a language that can be perceived by humans. On the oth hand, the flowchart is made up using different shapes and symbols. 4. There are no stringent rules are implemented in the algorithms while the flowchart abode by predefined rules. 5. Errors and bugs are easily detected in the algorithm as compared to the flow chart 6. Flow charts are simple to create. On the contrary, the construction of the algorithm complex. ...

What is pseudo code?

Pseudo code is easy to read and write, as it represents code the statements if an algorithm in English. Pseudo code is really structured English. It is English which has been formalized and abbreviated to look very like a high -level computer language. ------------------------------------- Posted By - Sadia Afrin Hiya

Draw the flow chart of the process of compiling and running a C program?

The flowchart of process of compiling and running a C program is as follows. ------------------------------------- Posted By - Sadia Afrin Hiya

What is operating system?

Operating System: An operating a system is a program that controls the entire operation of a computer system.All input/ output functions are channeled through the operating system. The operating system which is the interface between the hardware and and the user, handles the execution of user programs. ------------------------------------- Posted By - Sadia Afrin Hiya

Write down about "executing a c program".

Executing a C program involves a series of steps.They are (i) Creating the program. (ii) Compiling the program (iii) Linking the program with functions that are needed from the C library. IV) EXecuting the program. Although these steps remain the the same irrespective steps and convenions of the operating system, system command for implementing the steps and conventions for naming files may differ on different system. ------------------------------------- Posted By - Sadia Afrin Hiya

what is #define directive?

#define is a preprocessor means : (i)A #define is a preprocessor compiler directive and not a statement. (ii) #define should not end with semicolon. (iii) symbolic constans are generally written in uppercase so that they can be easily distinguished from the lowercase variable names. (V) #define instructions are usually placed at the beginning before the main() function. ------------------------------------- Posted By - Sadia Afrin Hiya

Write down the basic structure of C programming?

Basic structure of C programming : To write C program, we first create functions and then put them together. A C program may one or more section . They are illustrated below Documentation Section : This section consists of comment lines which include the name of programmer, the author and other details like time and date of writing the program. Documentation section helps anyone to get an overview of the program. Link Section : The link section consists of the header files of the functions that are used in the program. It provides instructions to the compiler to link functions from the system library. Definition Section : All the symbolic constants are written in definition section. Macros are known as symbolic constants Global Declaration Section : The global variables that can be used anywhere in the program are declared in gl...

Overview of C

1.What is structured programming language? Structured programming language is a logical programming method that is considered a precursor to OOP (object-oriented programming).Structured programming is a procedural programming subset that reduces the need for goto statements.Structured programming facilitates program understanding and modification and has a top-down design approch, where a system is divided into compositional subsystems. 2.what is programming language ? A programming language is a set of commands,instructions,and other syntax use to create a software program.Languages that programmers use to write code are called "high-level languages".This code can be compiled into a "low-level languages",which is recognized directly by the computer hardware.Programming language is a vocabulary an...

Define Pre-processor,function,Compile time,Run time.

Preprocessor : It is a program that process the source code before it passes through the compiler. In computer science, a preprocessor is a program that processes its input data to produce output that is used as input to another program and the output is said to be a preprocessed form of the input data. The output data is often used by some subsequent programs like compilers. Function: A function is a subroutine that may include one or more statements designed to perform specific tasks.For C programming functions are as building blocks. A function is a group of statements that together perform (সঞ্চালন)a task. Every C program has at least one function, which is main(),and all the most trivial(নগণ্য) programs can define additional functions. Compile time: Compile time refers to the event that occur during the compilation process. Run time: ...

What is #include directive?

#include directive : C programs are divided into modules or functions. Some functions are written by users and some are stored in C library. Library functions are grouped category wise and stored in different files known as header files.To access the file stored in the library, it is necessary to tell the compiler about the files to be accessed. This is achieved by the preprocessor directive #include as follows, #include Filename is the name of the libraby file that contains the required function definition. Preprocessor directives are placed at the beginning of the program. ------------------------------------- Posted By - Sadia Afrin Hiya