GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Which of the following is a correct way to declare a structu…

Which of the following is a correct way to declare a structure with a bit field?

Read Details

Structures can be passed to functions by value only.

Structures can be passed to functions by value only.

Read Details

What does the following code snippet demonstrate?  #include…

What does the following code snippet demonstrate?  #include struct point { int x; int y; }; struct point doSomething(int x, int y) { struct point p; p.x = x; p.y = y; return p; } int main() { struct point p = doSomething(7, 8); printf(“%d %d\n”, p.x, p.y); return 0; }

Read Details

Which function is used to check for the end of a file?

Which function is used to check for the end of a file?

Read Details

Which function is used to create a new file?

Which function is used to create a new file?

Read Details

Which of the following is a correct way to copy a structure?

Which of the following is a correct way to copy a structure?

Read Details

Which function is used to terminate a process?

Which function is used to terminate a process?

Read Details

What will be the output of the following code snippet?  #inc…

What will be the output of the following code snippet?  #include struct point { int x; int y; }; void doSomething(struct point *p) { p->x = 10; p->y = 20; } int main() { struct point p = {1, 2}; doSomething(&p); printf(“%d %d\n”, p.x, p.y); return 0; }

Read Details

What is the purpose of the following code snippet?  #include…

What is the purpose of the following code snippet?  #include struct point { int x; int y; }; struct point doSomething(struct point p1, struct point p2) { struct point result; result.x = p1.x + p2.x; result.y = p1.y + p2.y; return result; } int main() { struct point p1 = {1, 2}; struct point p2 = {3, 4}; struct point sum = doSomething(p1, p2); printf(“%d %d\n”, sum.x, sum.y); return 0; }

Read Details

The function unlink creates a hard link.

The function unlink creates a hard link.

Read Details

Posts pagination

Newer posts 1 … 44,028 44,029 44,030 44,031 44,032 … 82,065 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top