Random Password Generator | C Programming Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thanks for these videos. You have helped me understand several issues that had previously seemed puzzling. I appreciate it.

baruchben-david
Автор

How come you can print the value of the pointer ‘password’, without dereferencing the pointer?

So from my understanding we create an character array, we allocate memory to it to store the amount of characters the user wants in their password. (+ 1 to terminate the string)

We run a loop to assign a value of a random character type to the indexes (memory addresses) of the array.

We add ‘\0’ to the password after the loop ends.

Lastly we print the password using a format specifier and the password variable.

So the loop adds the values of random character types to the different memory addresses of the array, but when we print the password, we get values, not memory addresses?

daminb
Автор

I wish meet you someday 🤩. Thank you for all you do

D_Ladybug
Автор

@Host

Iwas wondering if you can explain the placement of the '*' on the type or the variable name.Does it make a difference? If so what is it?

Example being int*/char* variable_name or int/char *variable_name AND can there be a 'free standing/floating' '*' in between the int/char and var name like int/char * variable_name ?

cleightthejw
Автор

Thanks. Could you share a tutorial of how the "rand" function is built? The logic behind it that is.

SketchupGuru
Автор

Could have been nice if you included a loop when we enter a short password so the program doesnt close each time

Xnnoha
Автор

Do you have any videos on unit testing in c?

matt.loupe.
Автор

Your explanation for each thing is really great. I just wanted help regarding how can I tell the computer to give me random words from the file which I tell it to read. It would be great help if you could help me out with this. Thanks:)

callistafrancis
Автор

Why not use arc4random_uniform? Manual indicates it generates higher quality random numbers. I started in C recently, please don't get me wrong.

rapphhael
Автор

good tutorial but you dont actually explain how the code works.

lizardmilk
Автор

Dont copy this please I will use it in my group project (:

noydygg