what is the difference between normal variables and pointer
variables..............
Answer Posted / mani
Normal variable:memory size of variables depends upon respective datatype; if int it'll take 2byte , char will take 1 byte.
Pointer variable:memory size of pointer variable is constant that is 4byte in gcc compiler irrespective of any datatype.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is an array? What the different types of arrays in c?
How can I make it pause before closing the program output window?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
can we change the default calling convention in c if yes than how.........?
where are auto variables stored? What are the characteristics of an auto variable?
Explain what is the difference between functions abs() and fabs()?
In which layer of the network datastructure format change is done
Ow can I insert or delete a line (or record) in the middle of a file?
What is the difference between if else and switchstatement
What is a 'null pointer assignment' error?
In a switch statement, what will happen if a break statement is omitted?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
How do you construct an increment statement or decrement statement in C?
What is a example of a variable?
What is the difference between text and binary i/o?