C Program to Reverse a String using Pointer
C Program to Reverse a String using Pointer #include <stdio.h> int main() { printf(“\n\n\t\tEduguru – C Program Example\n\n\n”); char str[100]; char rev[100]; char *sptr = str; // sptr stores the base address of the str char *rptr = rev; // rptr stores the base address of the reverse int i = -1; printf(“\n\nEnter a string: … Read more