1.When I declare a variable as const then any subsequent assignment of it gives an error "assignment of read only variable". Is a const variable treated as a read only variable?
2. #include<stdio.h> struct s1 { char a; }; char s2 { char b; int c; }; printf("%d",sizeof(struct s1)); // output : 1 printf("%d",sizeof(struct s2)); // output : 8 please explain.. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/nOK4AkuAgW8J. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.