C While Loop

In C programming, we like to repeat some instructions over and over again with or without updated information. C language provides loops for this purpose.The type of loop, you want to use depends on how you want to use the loop – C while loop, C for or C do-while loop.Read: C Programming Tutorial – … Read more

C Flow Control Structures – II

In the previous lesson, we learned about the flow control structure. We learned about the if-else structures and nested if structures. In this lesson, we will learn about another flow control feature – switch-case.If-else ConstructConsider a C program for calculator, the user is given a menu with options to choose from. Add Subtract Multiply Divide … Read more

C Logical Operators

C programming language has logical operators for logical expressions. The output of a logical operation is a Boolean value – true or false.In a logical expression, you have one or more operands and each has a truth value, depending on the truth value of each operand the logical operator decides the final truth value of … Read more

C Arithmetic Operators

The arithmetic operators in the C language are used to perform basic mathematical operations. It is used in a C arithmetic expression involving at least two operands and an operator.An expression is C statement that evaluates to a single value. You can use this value in another C expression or output to the console.For example,In … Read more

C Flow Control Structures – I

In a C program, the statements are executed sequentially – one at a time. But, not all C programs are executed in the same way. In some programs, we want to execute a part of the code and ignore others parts.The flow of the program must change when we meet certain criteria or not meet … Read more

C Program Structure

C programming language is a general-purpose high-level programming language and like every programming language, it follows a consistent structure. In this article, we begin the tutorial by describing the structure and elements of C language.C StatementsA C program is consists of statements or instructions grouped together. A statement is an instruction to a compiler which … Read more

C Printing Outputs

In C language, you need to compute the results and then output the results to the console. In order to do that we need specific built-in functions from C library.The most common library function is printf(), putchar() and puts(). In this article we will discuss each one of them in details and see some examples. … Read more

C Reading Input Values

In C language, variables are assigned values directly and then we can use them in different types of expressions and get the results.But the initial values given to the variables are fixed and does not change. Sometimes the user wants to enter the input values themselves and check the results for different input values.For exampleIn … Read more

C Arrays

In C programming language, an array is a data structure. Before we discuss C arrays, let us understand the reasons and motivation for creating an array.Variables vs. ArraySuppose you want to create 10 variable of integer type, there is no problem in creating, accessing or modifying these variables. Also, it is very easy to use … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version