array input without loop or goto stmt...
#include "stdio.h"
void shivamzaz(int i);
int n; // globaly declare coz of globaly access.
//scanf("%d",&n);
int main(){
int i=0;
scanf("%d",&n);
shivamzaz(i);
return 0;
}
void shivamzaz(int i){
static int a[10000];
if(i<n){
scanf("%d",&a[i]);
shivamzaz(i+1);}
}
void shivamzaz(int i);
int n; // globaly declare coz of globaly access.
//scanf("%d",&n);
int main(){
int i=0;
scanf("%d",&n);
shivamzaz(i);
return 0;
}
void shivamzaz(int i){
static int a[10000];
if(i<n){
scanf("%d",&a[i]);
shivamzaz(i+1);}
}
This comment has been removed by the author.
ReplyDeletenice concept of storage class .i really appreciated...sir
ReplyDeletenice concept...
ReplyDelete