how to get the sum of two integers?
Answers were Sorted based on User's Feedback
#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);
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sandeep gupta
#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);
getch();
}
getch is missed which hold the output result on the screen.that's why i add the GETCH in this program.
| Is This Answer Correct ? | 0 Yes | 0 No |
Define stl.
what is a template?
2 Answers Amazon, BITS, IBS, Wipro,
What is Object Oriental Progam
if x<>=z then statement end what is the cyclomatic complexity
Can we use stl in coding interviews?
Assume I have a linked list contains all of the alphabets from "A" to "Z?" I want to find the letter "Q" in the list, how does you perform the search to find the "Q?"
Write a program in C++ to concatenate two strings into third string using pointers
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
write a program to search and display the position of an element in a single-dimentional array using function.
What is a stl vector?
What is stl stack?
how to overload << and >> operator in c++