UrbanPro
true

Take BTech Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

C program for Beginners

P
Parul R.
02/08/2020 0 0

A Program to print 2 integer value. 

#include<stdio.h>

#include<conio.h>

main()

int a,b,add;

a=5;

b=3;

add=a+b;

printf(“ Addition=%d”,&add);

getch();

 

Brief description of above program,

#include: it  includes library function/import predefine libraries.

<stdio.h>:  standard input output header file.

main():  it is first function of C programming. Every C programme must have main() function.

int a,b,add: a,b,add are declared as integer(int) type variables.

add=a+b: this statement sum a and b and store result in add variable.

printf: printf is a function to print output.

getch(): also a function, it is used to return program window to console.

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

What Are Register Variables?
Registers are faster than memories to access. Hence when we declare a variable with a registerkey word, the compiler gets to know that the variable can be put to registers. Now whether the variables will...

Java
Java is a high level language which is far better than procedural languages like C, Fortran and Pascal. Java completely stands with the principles of OOPS (Object Oriented Programming Structure). The...
A

Abhisheak Saxena

0 0
0

Compiling C program on Linux machine GCC ,GDB
Linux have powerful tool called "Terminal". From "terminal" we can command the machine. For any programming language the required tools are editor, compiler and debugger. Compiler will check the syntax...
N

Narasimha Reddy

0 0
0

Divisibility rule
Every no. Is divisible by 1. Every even no. Is divisible by 2. If the sum of digit of a no. Is divisible by 3 then the no. Is also divisible by 3. If the last two digit is divisible by 4 then that no....
M

Mohit S.

1 0
0

Consignment Meaning & Features
Meaning & Features Of Consignment Meaning: Consignment means the transaction of sending goods by one person (called CONSIGNOR) to another (called CONSIGNEE) who is to sell those goods on behalf of...
F

Looking for BTech Tuition ?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you

BTech Tuition Questions

X

Looking for BTech Tuition Classes?

The best tutors for BTech Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BTech Tuition with the Best Tutors

The best Tutors for BTech Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more