How do you verify if the two sentences/phrases input is an
anagram using predefined functions in string.h and by using
arrays?
No Answer is Posted For this Question
Be the First to Post Answer
How will u find whether a linked list has a loop or not?
#include <stdio.h> #define a 10 main() { #define a 50 printf("%d",a); }
main() { char not; not=!2; printf("%d",not); }
main() { printf("\nab"); printf("\bsi"); printf("\rha"); }
main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf("\n %d", i); } a. Runtime error. b. 100 c. Some Integer not 100 d. None of the above
how can i cast a char type array to an int type array
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); }
write a program for area of circumference of shapes
#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }
struct Foo { char *pName; char *pAddress; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); obj->pName = malloc(100); obj->pAddress = malloc(100); strcpy(obj->pName,"Your Name"); strcpy(obj->pAddress, "Your Address"); free(obj); printf("%s", obj->pName); printf("%s", obj->pAddress); } a. Your Name, Your Address b. Your Address, Your Address c. Your Name Your Name d. None of the above