#include<stdio.h>
#include<conio.h>
#include<conio.h>
#include<stdlib.h>
void main ()
void main ()
{
char *a,*b,*max;
char *a,*b,*max;
a=(int*)malloc(sizeof(int));
b=(int*)malloc(sizeof(int));
clrscr();
printf("Enter first string=");
printf("Enter first string=");
scanf("%s", a);
printf("Enter second string=");
scanf("%s", b);
if(strcmp(a,b)>0)
strcpy(max,a);
else
strcpy(max,b);
printf("Maximum= %s",*c);
getch ();
}
getch ();
}
No comments:
Post a Comment