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
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
How many types of functions are there in c?
Explain the difference between getch() and getche() in c?
What does *p++ do? What does it point to?
Explain null pointer.
Why c is called a middle level language?
Explain built-in function?
How can my program discover the complete pathname to the executable from which it was invoked?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Are the outer parentheses in return statements really optional?
Why do we use static in c?
Do pointers take up memory?
What is the meaning of 2d in c?
Why is sizeof () an operator and not a function?
What are the ways to a null pointer can use in c programming language?