1,629 views

5 Answers

0 votes
0 votes

Answer : 4

lets assume 10 stored at address = 100 ,

its array so continuous memory allocation . 

lets assume integer size = 4 Byte

then , 

10 20 30 40 50 60

100                    104                  108               112               116                120

p = (a+1) = 104  ,  q= (a+5) = 120

q-p = (120-104) = 16

we assumed size of INT = 4 Byte , so divide it by 4

so, q-p = 16/4 = 4

Answer:

Related questions

3 votes
3 votes
4 answers
1
Arjun asked Oct 18, 2016
814 views
What will be the output of the following code?#include <stdio.h int main() { char a = 'A', z = 'Z'; printf("%d", z-a); }
12 votes
12 votes
1 answer
2
3 votes
3 votes
2 answers
3
7 votes
7 votes
3 answers
4
Arjun asked Oct 18, 2016
1,649 views
The output of the following C program will be _____#include<stdio.h #define type int type foo(type b) { return b*b; } #undef type #define type float int main() { float a ...