#include<stdio.h>
#include<conio.h>
# define swap(a,b) temp=a; a=b; b=temp;
void main( )
{
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}
Answer Posted / ashishrajvanshi01
On compiling i got ans 10, 0, 0. I did not understand the concept. Please expalin this to me.
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Can we use visual studio for c?
What is string length in c?
Can static variables be declared in a header file?
given post order,in order construct the corresponding binary tree
Explain what is wrong with this program statement? Void = 10;
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Why is #define used?
How does normalization of huge pointer works?
What is the purpose of type declarations?
writ a program to compare using strcmp VIVA and viva with its output.
What are different types of pointers?
What is property type c?
What is the use of void pointer and null pointer in c language?
What is the use of ?