GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Which of the following is true about arrays and pointers in…

Which of the following is true about arrays and pointers in C?

Read Details

What is the correct way to initialize a pointer to NULL in C…

What is the correct way to initialize a pointer to NULL in C?

Read Details

Function prototypes are optional in C.

Function prototypes are optional in C.

Read Details

What does the ‘static’ keyword do when used inside a functio…

What does the ‘static’ keyword do when used inside a function?

Read Details

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

What will be the output of the following code snippet? #include void function(int *x) { (*x)++; } int main() { int a = 5; function(&a); printf(“%d\n”, a); return 0; }

Read Details

Pointers can be used to manipulate strings in C.

Pointers can be used to manipulate strings in C.

Read Details

What does the following code snippet demonstrate? #include…

What does the following code snippet demonstrate? #include void function(int *arr, int size) { int temp; for (int i = 0; i < size / 2; i++) { temp = arr[i]; arr[i] = arr[size - 1 - i]; arr[size - 1 - i] = temp; } } int main() { int arr[] = {1, 2, 3, 4, 5}; function(arr, 5); for (int i = 0; i < 5; i++) { printf("%d ", arr[i]); } printf("\n"); return 0; }

Read Details

What is the entry point of a C program?

What is the entry point of a C program?

Read Details

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

What is the purpose of the following code snippet? #include void swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp; } int main() { int x = 10, y = 20; swap(&x, &y); printf(“x = %d, y = %d\n”, x, y); return 0; }

Read Details

Recursion is a technique where a function calls itself.

Recursion is a technique where a function calls itself.

Read Details

Posts pagination

Newer posts 1 … 37,543 37,544 37,545 37,546 37,547 … 73,799 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top