Switch, Break and Continue Statement Programming

C – Switch, Break and Continue Statement

  • January 7, 2021
  • 0 Comments

Switch Statement The switch statement is also called the constant multiway conditional statement. The program encounter the situation to choose the option particular option from the many kind of statement. To solve this problem you can use if-else statement also but that is a bit complex than the switch statement. The general format of the […]

Data Types in C Programming Programming

C – Data Types in C Programming

  • January 7, 2021
  • 0 Comments

A data type defines a set of values that a variable can store along with a set of operations that can be performed on that variable. Each and every variable that we are using in our program must be declared before its use. The reason behind it is that, each and every variable must be […]

Program to Add Numbers Programming

C – Program to Add Numbers With Explanation

  • January 7, 2021
  • 0 Comments

This is the C program for adding two numbers, The program will ask to user to enter two numbers and that will store the result of the two number is another variable and that will give the output.  C Code #include<stdio.h>int main(void){    int a, b, c;     printf(“Enter two numbers:”);    scanf(“%d%d”,&a,&b); c=a+b;    […]

Variables and Rules To Declare Variables Programming

C – Variables and Rules To Declare Variables

  • January 7, 2021
  • 0 Comments

A variable is a named data storage location in your computer’s memory. By using a variable’s name in your program, you are in effect, referring to the data stored there. For many compilers, a c variable name can be up to 31 characters long. (It can actually be longer than that, but the compiler looks […]