0

what will be output?? #include<stdio.h> main() { int arr [10]={1,2,3,4,5,6,7,8,9,10}; int *p,*q; q=arr/2; p=arr*2; printf("%d %d",*p,*q); }

29th Jun 2016, 8:38 PM
BARUN SARRAF
BARUN SARRAF - avatar
4 ответов
+ 1
it would propably be an error
30th Jun 2016, 5:40 PM
Jonasz Potoniec
Jonasz Potoniec - avatar
+ 1
Garbage value will be printed as you have not specified any value to the address arr/2 and arr*2.
13th Oct 2016, 10:07 AM
Kamal Singh
Kamal Singh - avatar
0
the name of an array is a const!
7th Jul 2016, 7:04 PM
陈道远
陈道远 - avatar
0
error ...bcz name of array is constant pointer
13th Jul 2016, 6:06 PM
Abhinav Dubey
Abhinav Dubey - avatar