54
loading...
This website collects cookies to deliver better user experience
#include <stdio.h>
#include <conio.h>
#include <string. h>
Void main(void)
{
Char fname[60];
Int dex;
Int length;
Clrscr( );
Puts("/nEnter your name:");
gets(fname);
lenght=strlen(fname);
for(dex=0;dex<length+4;dex++)
Printf ("addr=%5u char='%c=%3u\n",
&fname[dex],fname[dex],fname[dex] );
getch( );
}
Using sizeof( )
Using pointer
Using strln( )