Write a program to swap two numbers without using third variable?
Answer / Vikram Kapoor
"void swap(int a, int b) {n a = a ^ b;n b = a ^ b << 1;n a = a ^ b;n}"
| Is This Answer Correct ? | 0 Yes | 0 No |
consagous technology placement paper
What is the output for the following program #include<stdio.h> main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }
Explain command-line arguments in C.
How to print all the 26 alphabets in this order in C. AbCdEfGh..... it should print dynamically from a to z and do not print this using pgm like this print("Ab......"); Use loops or anything to print all alphabets
What are the types of functions in c?
What is volatile in c language?
How will you allocate memory to double a pointer?
Is c high or low level?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}
i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }
What is the right type to use for boolean values in c? Is there a standard type?