Sunday, January 1, 2017

REVERSING A KNOWN STRING without using STACK

Hello code lovers !                                Happy New Year 2017 !            
//REVERSING A KNOWN STRING
#include<stdio.h>
int main()
{
    char c[]="Ashutosh_Kumar_Singh";
    for(int i=(sizeof(c)-1);i>=0;i--)
    {
        printf("%c",c[i]);
    }
return 0;
}

No comments:

Post a Comment

Sacred Thought

5 May 2024 Hari Om Verse 50-51, chapter two:  In this chapter two Shree krishna explains a simple way of living. Free from desires and void ...