Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

" ; " after loop



Working with switch case



Header file



Comment



Specifer




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