Font
Large
Medium
Small
Night
PrevPage Index    Favorite Next

Chapter 103 A piece of cake(2/2)

Fu Hui clicked on his name.

Then he pulled down the blackboard with a bang and used chalk to write a few words on it.

b

0386

oxffa

x2a2

Yang Xu was a little confused when his name was called at first, but now he looked at the blackboard and became even more confused. He hadn't listened well in class before and couldn't understand what Fu Hui wrote.

There are more than a hundred people in a classroom, and Yang Xu feels that his name is ordinary and he is still in the middle. He may not be able to ask questions in a semester.

I didn’t expect to win today.

"This...well, yes..."

Yang Xu struggled for a long time but couldn't answer. His eyes were darting around, trying to get someone to give him the answer. But at this moment, Fu Hui's eyes were staring at him like knives. No one dared to act rashly.

What's more, the few around him are all bad students, including Xu Shuai and Zhang Wenjie. Zhou Guoqiang knows what to choose, but he doesn't dare to move now.

This question is very simple, very simple.

If it were good students like Ding Meng and Li Xiang, they would probably know it at a glance, but for scumbags like 207, well, good students and poor students are not in the same dimension at all.

"Just stand."

Fu Hui was so angry.

He gave Yang Xu a hard look and remembered him. He would definitely take good care of this student in the future. Originally, he planned to ask Li Chenyang, but seeing this guy staring at him, he asked him first. Unexpectedly, he was caught.

A piece of nonsense.

If Yang Xu knew this, he would definitely shout out his grievances and stay far away from Li Chenyang before going to class.

"Li Chenyang, tell me."

Fu Hui asked next.

Many students looked here. Li Chenyang was very famous in the computer department. Not only was he the class monitor, but he also often did not come to class, which was quite popular among the students.

Now they know.

Teacher Fu, this is a bad idea.

How did Li Chenyang respond? He didn't even attend class. He probably didn't even know what Teacher Fu wrote.

But they are destined to be surprised.

Li Chenyang stood up and said directly: "The legal integer among these numbers is oxffa."

Hearing what Li Chenyang said, many students who were staring here breathed a sigh of relief, and Ding Meng's originally tense face relaxed, and there was a little more smile.

Only Yang Xu, who was standing next to him, was confused.

Li Chenyang, is this just a wild guess?

Choose the one that looks least like a number!

However, Fu Hui's words shattered his idea. Fu Hui said, "That's a good answer. Tell me your reasons."

Li Chenyang said: "The overall constants in C language are divided into decimal integer constants, octal integer constants, and hexadecimal integer constants, oxffa, which is a hexadecimal integer constant."

"Why else is it wrong?" Fu Hui didn't intend to let him go like this.

Li Chenyang continued: "b is binary and does not conform to the three constant types. 0386 has 8 in it. There is no 8 in octal, and x2a2 is not a legal hexadecimal."

Fu Hui nodded. He couldn't find fault with this answer. This question was very simple, but Li Chenyang didn't usually come to class, so it was not easy to answer it.

He kept staring at Li Chenyang to make sure no one could pass the answer to him.

Fu Hui didn't let him sit down, then brushed on the blackboard and wrote a line of code.

#include

main

{intnum=0;
Chapter completed!
PrevPage Index    Favorite Next