Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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?

Answers were Sorted based on User's Feedback



44.what is the difference between strcpy() and memcpy() function? 45.what is output of the followi..

Answer / 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

44.what is the difference between strcpy() and memcpy() function? 45.what is output of the followi..

Answer / siyaoberoi

46. m getting the result FFF0..
plz correct me if m wrong..

Is This Answer Correct ?    2 Yes 1 No

44.what is the difference between strcpy() and memcpy() function? 45.what is output of the followi..

Answer / swastisundar bose

46.
0000000000000001
47.The progrm will compile,because it is syntactically
correct.
51.
#include<stdio.h>
int fact(int n){
if(n==0||n==1)
return(1);
else
return(n*fact(n-1));
}
void main(){
int a,b;
printf("Enter number:-");
scanf("%d",&a);
b=fact(a);
printf("\nThe factorial value of the number:- %d",b);
}

Is This Answer Correct ?    2 Yes 2 No

44.what is the difference between strcpy() and memcpy() function? 45.what is output of the followi..

Answer / 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

44.what is the difference between strcpy() and memcpy() function? 45.what is output of the followi..

Answer / dhina

#include<stdio.h>
#include<conio.h>
void fact();
void main()
{
clrscr();
fact();
getch();
}
void fact()
{
int n,f;
scanf("%d",&n);
if(n==1)
{
return(1);
}
else
{
f=(n*fact(n-1));
printf("%d",f);
}
}

Is This Answer Correct ?    4 Yes 6 No

44.what is the difference between strcpy() and memcpy() function? 45.what is output of the followi..

Answer / siyaoberoi

44. strcpy() copies only string.it doesnt copy the memory
location.memcpy() copies the memory location of the string.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

what is an array

5 Answers  


convert 0.9375 to binary

2 Answers   CTS, TANCET,


how to write a prog in c to convert decimal number into binary by using recursen function,

1 Answers  


What are the types of variables in c?

0 Answers  


24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?

2 Answers  


Describe explain how arrays can be passed to a user defined function

0 Answers  


Give differences between - new and malloc() , delete and free() ?

0 Answers   Genpact,


What language is c written?

0 Answers  


What is a substring in c?

0 Answers  


What is c language and why we use it?

0 Answers  


what are you see during placement time in the student.

0 Answers   Goldman Sachs, TCS, Tech Solutions,


In scanf h is used for

4 Answers   BFL,


Categories