C programming - Memory Segments

Can someone tell me how many bytes are allocated for C segments(text,data,heap,stack).

It is not fixed. It depends on the makeup of your C program. All automatic variables are in the stack area. All static and extern variable are in the data area. All allocated memory is in the heap area.

Try the size command.

cc myfile.c -o myfile
size myfile

And if you want detailed information try the objdump utility.