what is difference between declaring the pointer as int and
char in c language?
Answer Posted / k vishwanath pillay
While declaring Pointer for an Integer value, we assign a
default size i.e 4 byte of memory for the Integer variable.
But in the case of char by default it assigns 1 byte of
memory for that character variable.
The type of declaration is the same for both.
Char a[5], *p; // for char variable
int *i; // for Int variable
| Is This Answer Correct ? | 5 Yes | 10 No |
Post New Answer View All Answers
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
write a c program to calculate sum of digits till it reduces to a single digit using recursion
what are # pragma staments?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What does malloc () calloc () realloc () free () do?
Why doesnt long int work?
provide an example of the Group by clause, when would you use this clause
what is the basis for selection of arrays or pointers as data structure in a program
What is the meaning of typedef struct in c?
What are the advantages of c preprocessor?
Explain what are the different file extensions involved when programming in c?
using only #include
What is a newline escape sequence?
Write a program to check armstrong number in c?
What is output redirection?