Poll: Kiểm tra kiến thức C - 4.04

Các bạn thảo luận đáp án nhé, bài test lấy từ http://www.indiabix.com/online-test/java-programming-test/61
5.What will be the output of the program ?


#include<stdio.h>
int *check(static int, static int);

int main()
{
    int *c;
    c = check(10, 20);
    printf("%d\n", c);
    return 0;
}
int *check(static int i, static int j)
{
    int *p, *q;
    p = &i;
    q = &j;
    if(i >= 45)
        return (p);
    else
        return (q);
}

  • A. 10
  • B. 20
  • C. Error: Non portable pointer conversion
  • D. Error: cannot use static for function parameters
1 Like

đề khó như này thì ai dám làm :running:

1 Like

Vậy mấy bạn làn rồi là tích bừa à :-w

1 Like

ăn theo số đông =)))

1 Like
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?