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

What is main () in c language?

0 Answers  


suppose there are five integers write a program to find larger among them without using if- else

2 Answers  


2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above

4 Answers   Siemens,


explain what are pointers?

0 Answers  


What does the error message "DGROUP exceeds 64K" mean?

0 Answers   Celstream,






a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

0 Answers  


What are compound statements?

0 Answers  


can you change name of main()?how?

3 Answers   HCL, Siemens,


Difference between constant pointer and pointer to a constant.

0 Answers   Huawei,


What are the 4 types of programming language?

0 Answers  


What is c standard library?

0 Answers  


What do you mean by team??

5 Answers   Student,


Categories