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 / supriya
46. fffffff0
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);
}
48.
void strcpy(char *s, char *t)
{
while (*s++ = *t++)
;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are unions in c?
What is an identifier?
difference between native and cross compilers
What are formal parameters?
write a program to rearrange the array such way that all even elements should come first and next come odd
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Can you subtract pointers from each other? Why would you?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
How can you draw circles in C?
Explain how can type-insensitive macros be created?
Why & is used in c?
What is 'bus error'?
Is file a keyword in c?
How are pointers declared in c?
What is typedef struct in c?