Sunday, 22 October 2017

Calculating ASCII

#include<stdio.h>
int main(int argc, char* argv[])
{
    int i,j;
    if(argc==1)
        exit(1);
    for(i=1;i<argc;i++)
    {
        for(j=0;argv[i][j];j++)
            printf("ASCII of %d is %c \n",argv[i][j],argv[i][j]);
    }
    return 0;


}

No comments:

Post a Comment

Featured Post

TCS Latest Test Patern ( For On-Campus Drives )

Tata Consultancy Services is software services consulting company whose  headquarter is situated in Mumbai, India. It is the Asia’s larges...