Strings Interview Questions

  • What is difference between char array and string constant?
  • What is the difference between NULL and ASCII nul(\0)?
  • What is the difference between getch() and getche()?
  • What is the use of ctype.h?
  • What is difference between isascii() and toisascii()?
  • What is the difference ispunct() and isspace()?
  • What are the stranded I/O macros?
  • What is the difference between getchar() and putchar() ?
  • What is the return value of putchar()?
  • What is the difference between gets() and fgets()?
  • Using gets() is unsafe? why?
  • What is the difference between strcpy and memcpy? When it is used?
  • Difference between memmove and movmem()?when it is used?
  • What is the difference memcmp and  memicmp?when it is used?
  • Difference between strset() and  strnset()?
  • What is the difference between strcpy() and stpcpy()?
  • Difference between stricmp() and strcmpi()?
  • What is the difference between strcmp() and  strcmpi()?
  • Difference between strcat() and strncat()?
  • What is difference between strcmp() and strncmp()?
  • Difference between strspn() and  strcspn()?
  • How you can remove the last spaces from a string?
  • How you can remove the first spaces from a string?
  • How can I right-justify a string?
  • How you can pad a string to a known length?


0 comments: