wt is diference between int and int pointer as same as
float and float pointer and char and char pointer
Answers were Sorted based on User's Feedback
Answer / ravikumar
int gives the value of the integer but int pointer gives
address of the integer value
Is This Answer Correct ? | 38 Yes | 2 No |
Answer / shiva
* int Variable Stores a integer Value..
int pointer Stores a address of a integer Variable
* Float Variable Stores a Float Value..
Float pointer Stores a address of a Float Variable
* Char Variable Stores a Single Character
Char Pointer Stores Sequence of Characters
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / vilas soni++
"int" can give it's value, and
we can put any integer value in it directly.
while "pointer" of an integer can give value of an
integer what's address it contain, and
we can not put any integer value in it directly like :
int *p;
p = 65201;
it will give error.......
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / vinay
int is datatype and int pointer is datatype with address
Is This Answer Correct ? | 2 Yes | 3 No |
Answer / khajasirajuddin shaik
int is datatype which specifies integer type of data,where as int pointer specifies the address of an integer type variable
Is This Answer Correct ? | 3 Yes | 4 No |
Answer / jeeva
pointers always stores the address of the variable that it
is referred to....
when it is int pointer it means that the value at the
address that pointer holds is a integer (whole number)....
when it is char pointer it means that the value at the
address that pointer holds is a character....
when it is float pointer it means that the value at the
address that pointer holds is a floating point number....
Is This Answer Correct ? | 1 Yes | 3 No |
Answer / mohit (firozabad, a.d.college)
Pointer is a variable that hold the address of another
variable so address always integer type
The pointer type can not be char,float, etc
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / herok
int variable takes interger values but int pointer can take
address of an integer variable and also int variable takes
mainly 2 bytes and int pointer takes 4 bytes of memory
space.
Is This Answer Correct ? | 0 Yes | 4 No |
consider the following program sigment int n,sum=1; switch(n) { case 2:sum=sum+2; case 3:sum*=2; break; default:sum=0;} if n=2, what is the value of sum a.0 b.6 c.3 d.none
struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(ā%dā,s.x); }
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
program to convert a integer to string in c language'
What are the types of operators in c?
What is a C array and illustrate the how is it different from a list.
a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6
main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }
What are all different types of pointers in c?
What is the difference between exit() and _exit() function in c?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?