GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

What is the syntax for declaring a variable with this struct…

What is the syntax for declaring a variable with this struct? struct Place {     char name[ 100 ]; char address[ 1000 ]; };

Read Details

If you attempt to fopen() a file for writing, but the file d…

If you attempt to fopen() a file for writing, but the file does not exist, what happens?

Read Details

Which of the following is a valid and complete function defi…

Which of the following is a valid and complete function definition?

Read Details

After we open a file with fopen(), what we should do before…

After we open a file with fopen(), what we should do before writing things to the file?

Read Details

What is the output of the following code? #includeint functi…

What is the output of the following code? #includeint function(int, int);int main(int argc, char* argv[]){ int a = 25, b = 24 + 1, c; printf(“%d”, function(a, b)); return 0;}int function(int x, int y){ return (x – (x == y));}

Read Details

What does feof() returns if end of file was reached?

What does feof() returns if end of file was reached?

Read Details

What does the following fgets() expression do assuming fileI…

What does the following fgets() expression do assuming fileIn points to an existing file for input? char buffer[ 1024 ]; fgets( buffer, 1024, fileIn );

Read Details

Assume you have a FILE pointer named ptr which is pointing t…

Assume you have a FILE pointer named ptr which is pointing to an opened file. Which of the following statements is the correct way to read in a string?

Read Details

Which of the following is the correct code to open a file fo…

Which of the following is the correct code to open a file for writing? FILE * fileIn;

Read Details

What header file must be included to use malloc()?

What header file must be included to use malloc()?

Read Details

Posts pagination

Newer posts 1 … 16 17 18 19 20 … 82,090 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top