menu search

Recent questions tagged *p

Write a function that fills memory with a constant byte. Prototype: char *_memset(char *s, char b, unsigned int n); The _memset() function fills the first n bytes of the memory area pointed to by s with the constant byte b Returns a pointer to the memory area s FYI: The standard library provides a similar function: memset. Run man memset to learn more.
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
I am using code below and getting different values. int *p; printf("Size of *p = %d", sizeof(*p)); // Here value is 4 printf("Size of p = %d", sizeof(p)); // Here value is 8 Can any one please explain, what exactly is the reason behind this?
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
0 answers
To see more, click for the full list of questions or popular tags.
eForumAfrica, where you can ask questions and receive answers from other members of the community. Find the answer to your question, help others by answering their questions.

702 questions

631 answers


2.5k users