write a 'c' program to sum the number of integer values
Answer Posted / koushik sarkar
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter a integer no:-"); scanf("%d",&a);
printf("Enter a Integer no:-"); scanf("%d",&b);
printf("Sum= %d",a+b);
getch();
}
| Is This Answer Correct ? | 13 Yes | 12 No |
Post New Answer View All Answers
how to write a c program to print list of fruits in alpabetical order?
What is static memory allocation? Explain
what are # pragma staments?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
Why is sprintf unsafe?
What is a const pointer in c?
How do you sort filenames in a directory?
Difference between pass by reference and pass by value?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Can math operations be performed on a void pointer?
What are c header files?
What is the size of enum in c?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Which header file is used for clrscr?
Why flag is used in c?