All Questions
4 questions
0
votes
1
answer
90
views
Caesar problem. Keep getting error of segmentation
The follow part of code worked perfectly, while I declared variables key_num and plaintext within if{}, but since I declared them outside (cause I need to use these vars later) I get the "...
0
votes
3
answers
538
views
:( handles lack of argv[1] failed to execute program due to segmentation fault
if (argv[1] == NULL)
{
printf("Usage: ./caesar key\n");
return(1);
}
this is the solution before the program received the first statement validate null
0
votes
1
answer
383
views
Debugging problem caesar cipher pset1
I need some help with my debugging for the caesar cipher. I get these errors.
[image replaced with actual errors produced by the code that follows]
caesar.c:25:17: error: incompatible integer to ...
0
votes
2
answers
3k
views
misleading description of int main(int argc, string argv[])
In pset2 description following is said about int main(int argc, string argv[]) function:
1 : Well, recall that inside of argv[0], by default, is a program’s own name
Q1: How come argv[0] is by ...