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


Please Help Members By Posting Answers For Below Questions

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

830


How many types of functions are there in c?

677


Explain the difference between getch() and getche() in c?

645


What does *p++ do? What does it point to?

705


Explain null pointer.

710






Why c is called a middle level language?

715


Explain built-in function?

691


How can my program discover the complete pathname to the executable from which it was invoked?

744


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...

1581


Are the outer parentheses in return statements really optional?

678


Why do we use static in c?

717


Do pointers take up memory?

760


What is the meaning of 2d in c?

704


Why is sizeof () an operator and not a function?

675


What are the ways to a null pointer can use in c programming language?

697