Showing posts with label PROGRAM TRICKS. Show all posts
Showing posts with label PROGRAM TRICKS. Show all posts

Friday, June 1, 2012

INPUT CONVERTS TO ASCII


 PROGRAM TO CONVERT ANY INPUT TO ITS ASCII VALUE:-




#include<stdio.h>
main()
{
         char ch;
         printf(" Enter the character ");
         scanf("%c",&ch);
         printf(" ASCII value of %c is %d ",ch,ch);
}





Thursday, May 31, 2012

C-PROGRAM WITHOUT MAIN()

C PROGRAM WITHOUT MAIN FUNCTION:-


#include<stdio.h>
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)

int begin()

{
printf(” hello “);
}