Skip to content

Tag Archives: C-Arrays

Output of following program? #include<stdio.h>       int main()  {    int a[] = {1, 2, 3, 4, 5, 6};    int *ptr = (int*)(&a+1);    printf("%d ", *(ptr-1)… Read More
What is output? # include <stdio.h>    void print(int arr[]) {    int n = sizeof(arr)/sizeof(arr[0]);    int i;    for (i = 0; i < n; i++)… Read More
Predict the output of below program: #include <stdio.h>    int main() {     int arr[5];     // Assume base address of arr is 2000 and size of… Read More
Predict the output of below program: #include <stdio.h>    int main() {     int arr[5];            // Assume that base address of arr is 2000 and… Read More

Start Your Coding Journey Now!