cognitive-ninja / mini-voting-system Goto Github PK
View Code? Open in Web Editor NEWC project for beginners.
C project for beginners.
As the title implies, entering a lengthy string can cause a segmentation fault. Using scanf("%s") without specifying the maximum length of the input string can be hazardous, and I suggest taking measures to address this issue. One way to accomplish this is to indicate the maximum length of the string that will be received. For instance, if the buffer size is 50, using scanf("%49s") will ensure that at most 49 characters are read into the buffer.
It's also a good practice to check the return value of scanf to make sure that the expected number of input items have been successfully read. If scanf returns a value less than the number of expected input items, it means that there was an error or end-of-file condition.
In gdb:
As is evident, gaining control of the rip register can result in the possibility of Remote Code Execution (RCE).
Using sprintf()
is also dangerous and should be avoided, too.
some times it get output error or compile error
The header is used improperly, first put all the code in the header into a new C file then compile it with your C compiler with both source files and then in the header make it #ifndef (HEADERNAME_H) #define (HEADERNAME_H) (function return type with whatever else) #endif, this should make it more clean and clear.
what is admin password
who to get prn?
after enter prn number code isn't working? kindly check header file code. error is i can't write any command.
No file is included for the program to read contents from. The program is getting terminated upon entering a valid PRN for student login.
please provide the output screenshots of that sourcecode
I didnt understand the concept of extracting in this and also how to know what is the userid?
Can you please tell me how to make user id work.
I have created a election campaign 2022 mca with 8 students and 2 candidates
I'm trying user id 2022mca0001 and i have tried 2022mca00001 as well but it is showing invalid user id.
As I was playing around with the program and everything run fine, when I tried to "Continue Previous Election" as admin, the program crashed. It could have been my own misuse, but I would suggest that the function has a look taken on it
i cannot able to run programme can you make a full video how to store hader file and c file and how to run
you have to fix variable "false" on line 418 to variable "false1"
can you brief me on executing the code?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.