C Programming - Pointers - Discussion
Discussion Forum : Pointers - General Questions (Q.No. 2)
2.
Can you combine the following two statements into one?
char *p;
p = (char*) malloc(100);
Discussion:
82 comments Page 5 of 9.
Vij said:
1 decade ago
1. char p;
p= (char *) malloc (1000) ;
2. char *p;
p= (char *) malloc (1000) ;
Is that 1 and 2 mean the same. explain?
p= (char *) malloc (1000) ;
2. char *p;
p= (char *) malloc (1000) ;
Is that 1 and 2 mean the same. explain?
Lingarajathi said:
2 decades ago
Hello Mr/Ms
I need clear details about pointers and pointers memory allocation, can you send me this me the details.
I need clear details about pointers and pointers memory allocation, can you send me this me the details.
Rama said:
7 years ago
Thank you all for your good explanations.
Can anyone explain what is the relation between arrays & pointers?
Can anyone explain what is the relation between arrays & pointers?
(2)
Manish said:
1 decade ago
I didnt understand about pointer,how it is work in c.
What is the difference between pointer of c and c++.?
What is the difference between pointer of c and c++.?
LOIS said:
9 years ago
In C, 0 = true and others values represent false; then when one return 0 is to say that no errors occur.
Rahul roy said:
1 decade ago
Because pointer indicate the address and point out that point. So the char*p indicate that point p.
Tj015 said:
2 decades ago
Online complier great, can somebody tell me what are the prerequisite for making online complier.
Ananda venkatesh said:
10 years ago
@Veena mitra.
int and float storage patterns are different. So, we get different outputs.
int and float storage patterns are different. So, we get different outputs.
Siva said:
9 years ago
Why are we using return 0 if we give the main function as int main? can anyone tell me?
Priya said:
1 decade ago
Can anybody explain where is the pointer use, what is the purpose using of pointer?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers