skip to main
|
skip to sidebar
Grewal Theory
Ads
Wednesday, August 5, 2009
c program
#include
#include
int cube(int);
int square(int);
main()
{int i;
char ch;
printf("enter the number");
int(*x)(int);
scanf("%d",&i);
ch=getchar();
if(ch='a')x=cube;
elsex=square;
res=(*x)(i);
} int cube(int){return i*i*i;}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
adclickmedia
Followers
Blog Archive
August
(9)
April
(3)
May
(5)
About Me
Tamharan
nothing
View my complete profile
No comments:
Post a Comment