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 are formal parameters?

0 Answers  


What is the process to create increment and decrement stamen in c?

0 Answers  


What is the size of a union variable?

0 Answers  


C program code int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

6 Answers   TCS, Wipro,


How can you draw circles in C?

0 Answers   Accenture,






What is p in text message?

0 Answers  


write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)

1 Answers   Bosch, College School Exams Tests,


Write down the program to sort the array.

4 Answers   Impiger,


what is array?

8 Answers  


using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

0 Answers  


c language interview questions & answer

0 Answers  


write a programme to convert temperature from farenheit to celcius?

4 Answers   IBM,


Categories