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
What is the use of ?
what do you mean by enumeration constant?
What is a structure member in c?
How can I read data from data files with particular formats?
Differentiate between full, complete & perfect binary trees.
What is a macro?
What is the best way of making my program efficient?
Explain how can you check to see whether a symbol is defined?
What is 1f in c?
What are 'near' and 'far' pointers?
When should the volatile modifier be used?
What is the difference between c and python?
Explain the advantages and disadvantages of macros.
What is the function of volatile in c language?
Explain how are 16- and 32-bit numbers stored?