#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a=0,b=0,c=0;
printf("enter value of a,b");
scanf("
%d %d",a,b);
c=a+b;
printf("sum is %d",c);
getch();
}

Answer Posted / hitesh kumar

enter value of a,b
10
10
sum is 0

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to pass an entire structure to functions?

548


Explain what’s a signal? Explain what do I use signals for?

606


Is struct oop?

576


What is the scope of global variable in c?

551


how to introdu5ce my self in serco

1521






What is output redirection?

684


What are the types of unary operators?

654


What does %2f mean in c?

672


Why ca not I do something like this?

583


4. main() { int c=- -2; printf("c=%d",c); }

1364


What is the difference between ‘g’ and “g” in C?

2498


Explain what is the benefit of using enum to declare a constant?

582


What are all different types of pointers in c?

572


What is the difference between c and python?

577


Is c still relevant?

635