errors in computer programmes are called
void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..
What is your favorite subject?
1 Answers Ericsson, Invendis, Tech Mahindra,
Write a program to add the following ¼+2/4+3/4+5/3+6/3+... (Like up to any 12 no.s)
What is this pointer in c plus plus?
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.
write a program to print infinte number
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
How can I discover how many arguments a function was actually called with?
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
Write an algorithm for a program that receives an integer as input and outputs the product of of its digits. E.g. 1234 = 24, 705 = 0
What's the difference between constant char *p and char * constant p?
declare afunction pointer to int printf(char *)?