PRF192_-_PT02_-_SP_2024_1513.webp
maik205

PRF192_-_PT02_-_SP_2024_1513.webp

  • Media owner maik205
  • Ngày thêm
Question 20
Answer saved
Marked out of 1.00
What will be the output of the following C code?
1.#include <stdio.h>
2.void foo(int[]);
3.int main()
4.{
5.int ary[4] = {1, 2, 3, 4};
6.foo(ary);
7.printf("%d", ary[0]);
8.}
9.void foo(int p[4])
10.{
11.int i = 10;
12.p = &i;
13.printf("%d", p[0]);
14.}

Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
maik205
Ngày thêm
Lượt xem
674
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom