#include<stdio.h>
void printS(char []);
int main(){
char str[]="The C Programming Language";
printf("%d \n",sizeof(str)); //output=27
printS(str);
}
void printS(char s[]){
printf("%d \n",sizeof(s)); //output=4
}
Why this anamolous output
please explain what is the difference between 'str' and 's'.... and how can i have sizeof() output=27 in printS function.