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

Post New Answer

More C Code Interview Questions

Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

1 Answers  


#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }

1 Answers  


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.

6 Answers   Fusion Systems GmbH,


can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  


void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

2 Answers  






main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); } } a. 0, 0 b. 0, 513 c. 512, 0 d. 0, -513

3 Answers   HCL, Logical Computers,


All the combinations of prime numbers whose sum gives 32

1 Answers   HHH,


how to swap 3 nos without using temporary variable

4 Answers   Satyam,


main( ) { char *q; int j; for (j=0; j<3; j++) scanf(“%s” ,(q+j)); for (j=0; j<3; j++) printf(“%c” ,*(q+j)); for (j=0; j<3; j++) printf(“%s” ,(q+j)); }

1 Answers  


main() { int a[10]; printf("%d",*a+1-*a+3); }

1 Answers  


WAP to display 1,2,3,4,5........N

2 Answers  


C program to print magic square of order n where n > 3 and n is odd

2 Answers   Accenture,


Categories