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 are the types of type qualifiers in c?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
When is a void pointer used?
How do you search data in a data file using random access method?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is p in text message?
Can you tell me how to check whether a linked list is circular?
Tell me what is null pointer in c?
What do you mean by keywords in c?
What is a nested formula?
Explain do array subscripts always start with zero?
how do you execute a c program in unix.
what are non standard function in c
Explain what are the different data types in c?
Explain how can I make sure that my program is the only one accessing a file?