Yes, 0 is a valid argument. The value of hash in this instance is 7. The problem seems to come from passing the file pointer to a function. For some reason, when I pass the file pointer, it changes....
Type: Posts; User: GibsMe
Yes, 0 is a valid argument. The value of hash in this instance is 7. The problem seems to come from passing the file pointer to a function. For some reason, when I pass the file pointer, it changes....
I am trying to use fseek to move to a certainer record in a file but I am getting the runtime error "Unhandled exception at 0x7c91b1fa in accounts.exe 0xC0000005: Access violation writing location...
Isn't there a way to end a loop by inputing Ctrl-z using scanf and comparing the result to EOF?
I have the following code:
#include <stdio.h>
#include <string.h>
int main(void)
{
long Accounts[25];
I am trying to use scanf to take three inputs.
scanf("%8d %2s %f", &AccountNumber, &TransactionType, &TransactionAmount);
I need to limit the first input to 8 digits. The %8d works, but if I...
Ok, i created a new empty project, opened my .c file, and went to Build Project. Then I received this error: 'Sub Main' was not found in 'Project1'.
Here is my code:
#include <stdio.h>
int...
I am new to programming with C and visual studio. When I open a .c file with visual studio 2005, can any tell me how I actually compile it? Also, can anyone tell me why the "Start Debugging" option...