
Memory Layout of C Program
A typical memory representation of C program consists of following sections. Text segment Initialized data segment Uninitialized data segment Stack Heap A typical memory layout of a running process. Text […]
A typical memory representation of C program consists of following sections. Text segment Initialized data segment Uninitialized data segment Stack Heap A typical memory layout of a running process. Text […]
Declaring Pointers Pointers are variables that contain the memory addresses of objects or functions. Pointer variables are declared as a pointer type by using the asterisk punctuation and the data type of […]
1)What is the output of following program?
1 2 3 4 5 |
main() { int x = -10; printf("%dn", ~x+1); } |
a)-11 b)-9 c)10 d)Size of the integer is required to Ans:c 2)What is the output of following program?
1 2 3 4 |
main() { printf("%cn", '1' + 1); } |
a)ASCII value of […]