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
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is default value of global variable in c?
How do I round numbers?
How can I read data from data files with particular formats?
What are the 5 types of inheritance in c ++?
Difference between MAC vs. IP Addressing
What is c preprocessor mean?
Can we access array using pointer in c language?
What is scope and lifetime of a variable in c?
Write a program to print numbers from 1 to 100 without using loop in c?
What is the purpose of scanf() and printf() functions?
Which programming language is best for getting job 2020?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
How arrays can be passed to a user defined function
How can I call fortran?