write a program to interchange the value between two variable
without using loop
Answer / mudita rathore
#include<stdio.h>
void main()
{
int a,b,temp;
printf("enter value of a=");
scanf("%d",&a);
printf("enter the value of b=");
scanf("%d",&b);
temp=a;
a=b;
b=temp;
printf("a=%d b=%d",a,b);
}
| Is This Answer Correct ? | 5 Yes | 3 No |
if function is declared as static in one source file, if I would like to use the same function in some other source file...is it possible....how ?
int x=5; printf("%d%d%d",x,x<<2,x>>2);
How can I find the modification date of a file?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?
What is scope rule of function in c?
Write a code to generate a series where the next element is the sum of last k terms.
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }
How to compare array with pointer in c?
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3
A C E G H +B D F A I ------------ E F G H D
How to use c/c++ code in JAVA
10 Answers CDAC, IBM, Satyam, Scope International,