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
What is c language used for?
What is the difference between array_name and &array_name?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Which are low level languages?
What is sorting in c plus plus?
Describe wild pointers in c?
What 'lex' does?
What are variables c?
What is d'n in c?
What is d scanf?
What is structure padding and packing in c?
What are control structures? What are the different types?
Differentiate fundamental data types and derived data types in C.
hi send me sample aptitude papers of cts?