enter image description here

On line 42 I have int I declared but I have an error message that said I did:

vigenere.c:32:22: error: use of undeclared identifier 'i'   int k = argv[i]

What's happening here?

1 Answer 1


Yes, you have it declared on line 42, but the error occurs on line 32, 10 lines earlier. A variable MUST be declared before it can be used.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .