difference between ordinary variable and pointer in C?
Answers were Sorted based on User's Feedback
Answer / guest
ordinary variable holds value and pointer variable holds
the address
Is This Answer Correct ? | 21 Yes | 1 No |
Answer / syed
an ordinary variable is like a container it can hold any
value and we can change the value of ordinary variable at
time throughout the program.
a pointer is a variable that stores the address of another
variable ..
Is This Answer Correct ? | 13 Yes | 2 No |
What is size of union in c?
Difference between goto, long jmp() and setjmp()?
what is mean by Garbage collection ? Please answer me. Advance thanks.
what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error
What is the purpose of sprintf?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Write a program which take a integer from user and tell whether the given variable is squar of some number or not. eg: is this number is 1,4,9,16... or not
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
What is meant by high-order and low-order bytes?
what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); printf("%d%d%d%d%d%d",b--,b--,--b,b--,--b,--b);
How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)
write a program in c language for the multiplication of two matrices using pointers?