how to swap 4 number without using temporary number?
Answers were Sorted based on User's Feedback
Answer / brinda balakrishnan
a=a+b+c+d;
b=a-(b+c+d);
c=a-(b+c+d);
d=a-(b+c+d);
a=a-(b+c+d);
| Is This Answer Correct ? | 25 Yes | 0 No |
Explain how can you be sure that a program follows the ansi c standard?
difference between ordinary variable and pointer in C?
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?
What should malloc() do?
Write a program to print numbers from 1 to 100 without using loop in c?
What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.
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(); }
Explain how do you generate random numbers in c?
can u give me the good and very optimised code for a car racing game?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
What is difference between constant pointer and constant variable?