Friday, September 16, 2005

C Program
Here is the C Program i have gifted to my sister/friend. I have modified the output. Copy,compile and run it. (I have compiled with gcc and runs fine)

#include<stdio.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define P(i) printf("%c",i)
#define S strtok(NULL," ")
#define a P((atoi(strtok(p," ")))+14);while(i){P((atoi(S))+14),i--;}
char p[1000]="-4 54 87 83 100 18 88 100 91 87 96 86 101 30 -4 63 83 91 94 18 95 87 18 91 88 18 107 97 103 18 90 83 104 87 18 103 96 86 87 100 101 102 97 97 86 18 102 90 87 18 94 97 89 91 85 32 65 102 90 87 100 105 91 101 87 18 98 103 102 18 107 97 103 100 18 85 97 95 95 87 96 102 101 18 97 96 18 105 87 84 18 98 83 89 87 32 -4 31 54 90 83 104 83 94 -4";int i=104;void main(){a;}

2 Comments:

Blogger Unknown said...

Hey Dhavali,
The program dumps core on Linux...

2:24 AM  
Blogger Dhaval Makawana said...

Thanks Parashar.... my mistake..i had copied different program content. Its fixed now.

5:43 PM  

Post a Comment

<< Home