Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Working with switch case



" ; " after loop



Specifer



Iterative statement



Header file




Print ASCII value of a character and number



// AHF C PROGRAM SOLVING

//solving here basic type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { char ch; int n; pf("\nEnter any character: "); scanf("%c",&ch); pf("\nThe ASCII value of the given character is = %d",ch); pf("\nEnter any integer number: "); scanf("%d",&n); pf("\nThe character of the given ASCII value is: %c",n); return (0); }
OUTPUT:


© 2018 - All rights reserved