I am relatively new to C, and i am learning about buffer overflow as of right now. I know what it is but i don't necessarily know any pros of C not preventing this, if there is any. This is why i...
Type: Posts; User: AlexTank853
I am relatively new to C, and i am learning about buffer overflow as of right now. I know what it is but i don't necessarily know any pros of C not preventing this, if there is any. This is why i...
TheC language program environment does nothing to prevent buffer overflows ..... is there any pros to the obvious cons of this?
when i run it in dev C++ it automatically closes :confused:
would this call the name into the argument like you said?
#include <stdlib.h>
#include <stdio.h>
int main( int argc, char** argv)
{
int i;
The question I am having trouble differentiating between is #2 in my homework in comparison to # 1. The first one asked me to prompt the user for their name make it into a string and create a...
im getting a [Linker error] undefined reference to `WinMain@16' [Linker error] undefined reference to `WinMain@16' in the compiler. Kinda picking up where I left off and need an opinion.
...
I receive the error right on the last line that contains the final bracket of the program and i have no idea why maybe a new set of eyes can help me
#include <stdio.h>
#include <stdlib.h>...
The assignment wants me to print the value and the address of a and b, i dont know why I am having so much trouble with this it seems simple, i just need some direction.
#include <stdio.h>
void...
It has a compiling error and highloights the retunr (0); saying theres a syntax error before it. I cannot find the problem anyone care to help or improve my program.
#include <stdio.h>...
the first one
How would i go about converting a simple guessing game i made in C into a pep8 program?
ok so the computers supposed to guess my number however when i go to run it it asks what my repsonse to its guess is and shuts down. Anyone that can help? I would much appreciate it :)
...
Ok so here it is, The programs basic function is to calculate the estimated annual income of fast food industries after 2005 (any year, the user wants), i have all that done. however the program...
I got the smallest number from the set the user inputs (i did this a couple days ago and basically im lost) however i cannot figure out how to obtain the largest integer in the set any help would be...
ok so i finished the program, The example said to have the digits displayed in reverse order and display to the user whether or not their number was divisble by 9, let me know if I did this correctly...
Ok so heres what I have so far, the example gives a number thats 6 digits long so i just assume the user puts in 6 ( after i get this perfected i would like to know how to have it adjust to the...
Thanks for the help, i get how to "peel off numbers" but what if my number doesnt have a set amount of digits and the user enters a random number like from 0 - 999999 (just for argument sake)
I have to create a program that asks the user for an integer, my program must determine whether or not that integer is divisible by 9, also it must display every digit within the integer starting...
well i was hoping someone would work one or a couple out so i can see how it is done, im basically trying to self teach myself because my teacher is horrible.
example problems out of the book i am having problems with:
16bit operations -> hex
FEDC logical-and 6789
arithmetic_right_shift(AA48)
FEDC xor 6789
logical_left_shift(080F)
I appreciate the heads up, would x be 3 for question 1 and x be 4 for question 2? If you cant answer i understand, i do understand hat the else if does but what if it is both if statements are...
Explain the difference between 1 and 2 and give the value for x in both when x is 1.
1)
if ( x >= 0)
x = x + 1;
else if ( x >= 1)
x = x + 2;
2)
if ( x >= 0)
x = x + 1;
Hi all sorry my first post was not about an problems in C, question will come relatively soon. I understand the mis categorized post and i apologize however i am stuck on this concept and thought i...