Latest Answer: #include#include#includevoid main(){char name[50],fname[15],sname[15],lname[15];int i,j,k;clrscr();printf("First name:");gets(fname);printf("Second name:");gets(sname);printf("Last ...
Latest Answer: int a=10,b=20;a=a+b;b=a^b;a=a^b; ...
Latest Answer: main(){char str[10];int i=0;clrscr();printf("Enter the name to be reversed :");scanf("%s",&str);for(i=strlen(str);i>=0;i--){printf("%c",str[i]);}getch();} ...
Latest Answer: #includeusing namespace std;/* factorial function --recursive*/int fact(int n){ if (n == 0) return 1; n=n*fact(n-1); return n;}int main() { int n=5; cout
Latest Answer: #include#includeint main(){ int f1=0, f2=1,i, n, k; printf("enter the value of n n"); scanf("%d", &n); ...
Latest Answer: #includeusing namespace std;int fact(int n){ if (n == 0) return 1; n=n*fact(n-1); return n;}int main() { int n=5; cout
Latest Answer: class CommandLineTest{ public staic void main(String a[]){ for(int i=0;i
Write a program which uses functions like strcmp(), strcpy()?
What are the advantages of using typedef in a program?
Latest Answer: ptr=realloc(ptr,newsize);This function allocates a new memory space of size newsize to the pointer variable ptr and returns a pointer to the first byte of the new memory block.The new size may be smaller or larger than the size.If the function ...
View page << Previous 15 16 17 18 [19] 20 21 22 23 24 Next >>

Go Top