Hi,
I have tried following program and the output is 1. Does this mean by default void * can be treated as char *.
Code:#include<stdio.h> int main() { void *ptr; int i; i = sizeof(*ptr); printf("%d",i); return 0; }
Hi,
I have tried following program and the output is 1. Does this mean by default void * can be treated as char *.
Code:#include<stdio.h> int main() { void *ptr; int i; i = sizeof(*ptr); printf("%d",i); return 0; }