#include <stdio.h>
#include <string.h>
int main() {
int a,i,n=0;
int h=0;
static int d[25];
char b[25];
//int d[25];
scanf("%s",b); // reads only till space _
for(i=0;b[i]!='\0';i++){
a++;
}
for(i=0;i<=a;i++){
while(b[i]==' '){
n++;
}
d[i]=n;
printf("Size of int array:%d \n",sizeof(d));
printf("Size of 1 int value :%d \n",sizeof(int));
h=sizeof(d)/sizeof(int);
printf("%ld",h);
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: