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?
Answer Posted / vidya v
49.#include<stdio.h>
main()
{
int a,b;
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("%d%d",a,b);
}
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Why isn't it being handled properly?
p*=(++q)++*--p when p=q=1 while(q<=6)
Is c object oriented?
What is a double c?
Do you know the difference between exit() and _exit() function in c?
What is pivot in c?
What is a shell structure examples?
Explain heap and queue.
What does sizeof return c?
code for replace tabs with equivalent number of blanks
Explain the advantages and disadvantages of macros.
What is sorting in c plus plus?
What is the code in while loop that returns the output of given code?
Explain is it valid to address one element beyond the end of an array?
What is a constant?