wat s the meaning of (int *)p +4;

Answers were Sorted based on User's Feedback



wat s the meaning of (int *)p +4;..

Answer / vignesh1988i

here 'p' must be a void pointer.
here (int*)p means that 'p' is type casted to point to the integer value.

that address is incremented by 4.



thank u

Is This Answer Correct ?    9 Yes 0 No

wat s the meaning of (int *)p +4;..

Answer / kathir

Type casting p to a pointer to integer.If p would have been
p=0x00000004 then this would increase the pointer by 4.

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More C Interview Questions

How many types of errors are there in c language? Explain

0 Answers  


What are variables and it what way is it different from constants?

0 Answers  


palindrome for strings and numbers----Can anybody do the prog?

6 Answers   CTS, TCS, Vipro Lifescience Pvt,


What is meant by int main ()?

0 Answers  


For what purpose null pointer used?

0 Answers  






is it possible to change the default calling convention in c ?

1 Answers   Aptech,


What does *p++ do? What does it point to?

0 Answers  


Is linux written in c?

0 Answers  


What are bit fields? What is their use?

2 Answers   Adobe,


What are the types of c language?

0 Answers  


int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain me output????

1 Answers  


void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case

9 Answers   Accenture, TCS,


Categories