Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Header file



Test expression



Specifer



Iterative statement



Comment




Pointer_ print entered key name




// AHF C PROGRAM SOLVING

//solving here POINTER	programming problem

#include<stdio.h> #define pf printf int main() { char ch,*n= & ch; pf("Enter any character: "); scanf("%c",n); if(*n>='A' && *n<='Z') pf("\nUpper case character entered."); else if(*n>='a' && *n<='z') pf("\nLower case character entered."); else if(*n>='0' && *n<='9') printf("\nNumeric key entered."); else pf("\nPunctuation key entered."); return 0; }
OUTPUT:


© 2018 - All rights reserved