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
Can we assign integer value to char in c?
What is a char c?
What is the use of parallelize in spark?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What are the ways to a null pointer can use in c programming language?
Do array subscripts always start with zero?
Explain what is the general form of a c program?
What does 3 periods mean in texting?
What is getch() function?
#include
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What does c mean before a date?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What's the right way to use errno?
Can we assign string to char pointer?