Standard Template Library (STL) Question:
Download Questions PDF

How to get the sum of two integers?

Answer:

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,j,sum;
printf("enter two numbers");
scanf("%d%d",&i,&j);
sum=i+j;
printf("sum=%d",sum);
}

Download Standard Template Library (STL) Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me about c++?Why we are using the fork command and how it works?