What is the problem with pointers in c?
Let’s learn what is the problem with pointers in c. The most accurate or helpful solution is served by Stack Overflow.
There are ten answers to this question.
Best solution
Why does this work: //split returns (char**) char *temp2; temp2=split(array[i],'=')[1]; and this doesn't: char **temps; temps[0]=temp2; //crashes or this: temps[0]=split(array[i],'=')[1]; //crashes
Answer:
temps is just a pointer to a char*, but it has no initalized, sensible value! temps[0] is equivalent...
vash47 at Stack Overflow Mark as irrelevant Undo
Other solutions
if somebody can further explain an example of the following to me, to help me get a better understanding for my midterm programming file. we have to create a function that creates a strand (of characters) from a string. create a function that makes a...
Answer:
assuming to mean what I think you mean :\ #include <iostream> #include <string.h> using...
SAM JAM at Yahoo! Answers Mark as irrelevant Undo
I'm trying to write an encryption program that generates a random substitution map for the letters of the alphabet.The function that generates this substitution map returns a pointer and even though i'm sure the substitution map is created succesfully...
Answer:
Although you return a pointer to the your map, your map is allocated on the stack. The memory is only...
Morbo at Yahoo! Answers Mark as irrelevant Undo
The point is I was implementing a shell in linux (Operating Systems lab) using execvp which taker an array of character pointers as an arguement. The first arguement is the command and then input the whole array. Notice that the first element of the...
Answer:
I guess people who are used to languages where there is an explicit string type get a little confused...
Shehab at Yahoo! Answers Mark as irrelevant Undo
i downloaded some cursor application which allows us to choose many pointers which comes over ur simple arrow pointers now i am not able to get rid of this drop pointer permanently what to do? i even tried by going in control panel but it gave me temp...
Answer:
Uninstall the cursor application. You'll likely find it in Control Panel | Programs and Features You...
helpme at Yahoo! Answers Mark as irrelevant Undo
INCLUDE<IOSTREAM.H> VOID MAIN() { INT ARRAY[]={4,6,10,12}; INT*PTR=ARRAY; FOR(INT I=1;I<=3;I++) { COUT<<*POINTER<<"#" POINTER++; } COUT<<ENDL; FOR(I=1;I<=4;I++) { (*POINTER)*=3; --POINTER; //<---...
Answer:
All are upper case. Any how you are taking PTR as the pointer to the array. void main() { int array...
kvothe at Yahoo! Answers Mark as irrelevant Undo
Answer:
i am an asian woman. i get hit on from black guys all the time. i think its more of the approach. it...
gfinder at Answerbag.com Mark as irrelevant Undo
wiki.answers.com Mark as irrelevant Undo
Answer:
there is a thing that you could try, in russian its called "klisma" its essentially where...
pimmie at Answerbag.com Mark as irrelevant Undo
Answer:
This is not an answer, but some mre details for the question above. I have been connecting to the Internet...
Dr Jones at Answerbag.com Mark as irrelevant Undo
Related Q & A:
- what is The problem of the drunkard in a valley?Best solution by Mathematics
- What is the problem of my opel vectra, does not shift at reverse?Best solution by Yahoo! Answers
- What's the problem with asylum seekers?Best solution by monash.edu
- What is the problem with my PSP?Best solution by Yahoo! Answers
- What happened in the season finale of C.S.I.?Best solution by justjared.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.