1. 3.75
2. Depends on compiler
3. 24
4. 3
24
1. 7.000000, 7
2. Run time error
3. 7.000000, junk
4. Varies
7.000000, junk
1. 2, 1, 2
2. 2, 1, 1
3. 2, 1, 4
4. 2, 2, 8
2, 1, 4
1. No difference as space doesn’t make any difference, values of a, b, d are same in both the case
2. Space does make a difference, values of a, b, d are different
3. Program 1 has syntax error, program 2 is not
4. Program 2 has syntax error, program 1 is not
Program 2 has syntax error, program 1 is not
1. returns 1
2. returns 2
3. Varies
4. Compile time error
Compile time error
1. 2
2. True
3. 1
4. 0
2
1. 1 2 3 4 5
2. Segmentation fault
3. Compilation error
4. Undefined behaviour
1 2 3 4 5
1. i value is 1 and j value is 1
2. i value is 0 and j value is 0
3. i value is 1 and j value is undefined
4. i and j value are undefined
i value is 1 and j value is undefined
1. Output will be 3, 2
2. Output will be 3, 1
3. Output will be 6, 1
4. Output is compiler dependent
Output is compiler dependent
1. 2
2. 3
3. 4
4. 1
4