Ask
your own question, for FREE!
Computer Science
41 Online
OpenStudy (curry):
I ran a c program with the main function having (argc, argv[]) as parameters. I ran gdb with no parameters, then i ran it with the argument 5, and then i reran it with no parameters, but when i printed out all the values of argv, i have the folder source and the value "5" in the array. I don't understand how the 5 still got there when i reran the program without passing it an argument. (This is all through gdb, so i reran it by simply pressing r *enter*)
Still Need Help?
Join the QuestionCove community and study together with friends!
OpenStudy (curry):
@wio
OpenStudy (anonymous):
I don't know either
OpenStudy (curry):
my only explanation was that possible the main stack frame isn't being popped, so it just stays there.
OpenStudy (anonymous):
I'm guessing gdb kept them
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
persephone:
The emergency notification echoed in the theater as everyone reached for their phones to discover what was interrupting their movie.
3 hours ago
4 Replies
0 Medals
Juss1Jordan:
The way that this guy treats me make me feel wanted in this world not gonna say his name or @ cs the boy is mines .
4 hours ago
8 Replies
1 Medal
velmalovesshaggy145:
Isnu00b4t this the opening melody to mood by 24kgoldn feat iann dior? https://voca.
3 hours ago
8 Replies
2 Medals