GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

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

Which of the following is a learner-related barrier to learn…

Which of the following is a learner-related barrier to learning? 

Read Details

Posts pagination

Newer posts 1 … 37,587 37,588 37,589 37,590 37,591 … 73,843 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top