How to add two numbers with using function?
Answers were Sorted based on User's Feedback
Answer / geetha
#include<stdio.h>
#include<conio.h>
int add(int,int);
main()
{
int a,b,c;
printf("enter a,b values");
scanf("%d%d",&a,&b);
c=add(a,b);
printf("%d",c);
}
int add(int x,int y)
{
return(x+y);
}
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / vinay kumar
suppose x=5 and y=10,Then
while(y!=0)
{
x++;
y--;
}
printf("the sum value is:%d
",x);
| Is This Answer Correct ? | 0 Yes | 0 No |
Do you know the use of 'auto' keyword?
Where local variables are stored in c?
What are all different types of pointers in c?
What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.
what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???
how many key words availabel in c a) 28 b) 31 c) 32
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
What do you mean by command line argument?
change to postfix a/(b+c*d-e)
What is the output of the program #include<stdio.h> #include<conio.h> void main() {0 int i,j=20; clrscr(); for(i=1;i<3;i++) { printf("%d,",i); continue; printf("%d",j); break; } getch(); }
What are the different flags in C? And how they are useful? And give example for each in different consequences?
Explain how can you restore a redirected standard stream?