In C, if you pass an array as an argument to a function, what actually gets pass

Home | Discussion Forum
Taiyari24Hour

In C, if you pass an array as an argument to a function, what actually gets passed?



View More Related Question

2) In C Programming, If we need to store word "INDIA" then syntax is as below –

3) What will be the output of the program ?

#include <stdio.h>
int main()
{
int arr[1] = {10};
printf("%d", 0[arr]);
return 0;
}

4) What will be the output of the program ?

 #include<stdio.h>
int main()
{
int a[5] = {51, 1, 5, 20, 25};
int x, y, z;
x = ++a[1];
y = a[1]++;
z = a[x++];
printf("%d, %d, %d", x, y, z);
return 0;
}

5) In C, if you pass an array as an argument to a function, what actually gets passed?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.