What will be output when you will execute following c code? Biết kích thước kiểu char : 1 byte, float : 4 byte, int : 4 byte, double : 8 byte, long : 4 byte.
#include <stdio.h>
#include <conio.h>
int main()
{
printf("%d\t", sizeof(6.5));
printf("%d\t", sizeof(90000));
printf("%d", sizeof('A'));
getch();
}
#include <stdio.h>
#include <conio.h>
int main()
{
printf("%d\t", sizeof(6.5));
printf("%d\t", sizeof(90000));
printf("%d", sizeof('A'));
getch();
}
8 4 1
8 2 1
4 4 1
Depend on complier
Hãy suy nghĩ và trả lời câu hỏi trước khi xem đáp án
Tổng hợp câu hỏi trắc nghiệm lập trình C/C++ có đáp án và lời giải đầy đủ nhằm giúp các bạn dễ dàng ôn tập lại toàn bộ các kiến thức.