Post your trick

C trick

value of a variable which was last initialised can be printed without specifying variable name !!!
#include
#include
void main()
{
int a,b,c;
clrscr();
printf(”Enter No. C:”);
scanf(”%d”,&c);
printf(”%d”); /* printf(”%d”,c) is not required*/
getch();
}


Leave a Reply

     

     

     

Post A Trick !

How does "Kodetricks" work?

We at kodeplay like to share knowledge. With Kodetricks, even you can join us. All you need to do is post a programming related trick if you have one or rate a trick if you like someone else's.



Find us on

Technology

Contact Us