wat s the meaning of (int *)p +4;
Answers were Sorted based on User's Feedback
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 |
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 |
How can I get Single byte from 'int' type variable? Can we alter single bit or multiple bits in int type variable? if so, How?
How to implement call back functions ?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
How can I invoke another program or command and trap its output?
logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............
How can I find out how much free space is available on disk?
what is event driven software and what is procedural driven software?
Is c is a middle level language?
What is the hardest programming language?
What is the use of ?
how to add two numbers without using arithmetic operators?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.