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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between constant char *p and char * constant p?

637


What is the difference between volatile and const volatile?

544


Differentiate between full, complete & perfect binary trees.

643


Is c is a low level language?

543


Explain the ternary tree?

573






Explain what is the benefit of using const for declaring constants?

587


What are qualifiers and modifiers c?

528


If null and 0 are equivalent as null pointer constants, which should I use?

556


When should the const modifier be used?

629


Write a program for finding factorial of a number.

611


What are inbuilt functions in c?

538


Why ca not I do something like this?

571


What are the scope of static variables?

575


What is difference between Structure and Unions?

609


What is a constant and types of constants in c?

583