Answer Posted / clay
Here,
After char *p;
since pointer p is not initialized it is pointing at some
unknown location.
In the next step, the address of the memory allocated by
malloc() is stored at some garbage location pointed by p.
Here p is never initialized or never assigned any value.
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is scanf () in c?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What is ambagious result in C? explain with an example.
what is a constant pointer in C
How do you construct an increment statement or decrement statement in C?
How can you increase the size of a statically allocated array?
What are the main characteristics of c language describe the structure of ac program?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
What are global variables and how do you declare them?
Why is python slower than c?
What is the difference between struct and typedef struct in c?
Write a program to find the biggest number of three numbers in c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What are the rules for identifiers in c?
How can you check to see whether a symbol is defined?