In general, printf () is a library function under C header file stdio.h and conio.h both. And generally, it is used for displaying an outcome of a program to outside world. Printf() function is often used to our program to do formatted output. Continue reading
In general, we know that Operator is a person who operates equipment or a machine. for a programming language, Operator is a symbol that tails compiler or an interpreter to perform specific mathematical or logical / relational manipulation. Continue reading
Lab Manual for Mechanical Dept.(3rd year)
Dear Students, ME-A,ME-B1,ME-B2 (3rd Year) submit Your C Programming lab copy within 26/09/2016.
Program #1. Write a C program to perform addition , subtraction , multiplication and division of two numbers . Continue reading
In the previous tutorial, we have seen the array definition, declaration, initialization and access array values. Now we use the array to solve real-life math problems. Continue reading
In a single sentence, an Array is a container of the homogeneous data type. that can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. Continue reading
When loop inside a loop is called nested loop. Working procedure of nested loop is that the first pass of the outer loop triggers the inner loop, which executes to completion. Then the second pass of the outer loop triggers the inner loop again. This repeats until the outer loop finishes. Continue reading
Unlike most of the computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given boolean condition in C or C++. The while loop can be thought of as a repeating if statement. Here is some program using while Loop: Continue reading
Unlike any programming, language loops play a very important role in C or C++ . Here is some example program using for loop. Continue reading
Well, friends today we discuss about loops in C /C++. Iteration statements (Loops) allow a set of instruction to be executed repeatedly until a certain condition meets. The condition may be predefined or open ended like (for loop and do-while or while loop) Continue reading
C/C++ supports two types of selection statements: if and switch. In addition, the ? operator is an alternative to if in certain circumstances for flow control.
The Syntax of if statement is
if (expression) statement;
else statement; Continue reading