-
1. The main function in the C source program is main, the standard output function name is printf, and the standard input function name is scanf.
2. The number of bytes allocated by the basic integer int is 4 bytes, and the number of bytes allocated by the single-precision real float is 4 bytes.
3. In the loop, the statement that ends this loop and transfers to the condition judgment of the next loop is continue (break continue).
4. When defining arrays in C language, the requirement for numerical subscripts is constant integers.
5. While loop and do....The difference between while loops is that the former enters the loop only when the condition is true, while the latter executes the loop once and then judges whether to continue the loop.
-
One. 1)a
2)c3)d
4)c5)c
6) Why do I think there is no answer, it should be 0-65535.
7)a8)a
9) C10) B II.
4) Integer constants or constant expressions.
5) The order of judgment and execution.
Three. Do you need to fill in the blanks?
Four. main( )
int i,a[5],n;
for(i=0;i<5;i++)
scanf(“%d”,&a[i]);
n = a[0];
for(i=1;i<5;i++)
if(a[i]n=a[i];
prinf(“min=”,n);
If you need to explain, please say it, you don't have to be polite
-
Two. 2. The number of float bytes depends on the machine, 4 under the window;
3、continue;
4. The following table must be an integer constant or an integer constant expression (initialized) 5. While is the first judgment condition, and then executed if it is met; The do-while must be executed once, the second time, the judgment condition, if it is met, it is executed; (To put it simply, while is the first judgment to be executed, and the do-while is the first to execute before the judgment).
-
First of all, x=10 is smaller than 20.
Execute y=100
x is greater than 4 Execute 55 10=5 Assign 5 to y and print out 5
-
Initial x=10, y=unknown.
if (x<20) y=100;At this point, y=100
if (x>4) y=55/x;At this point, y=55 10=5 (because y is an integer).
To put it simply, there are two aspects to the problem.
First, theoretically speaking, there is no system without defects in the world, and any system, including the market economic system, has its limitations and defects. >>>More
Scrambled eggs with tomatoes or tomatoes with sugar.
Tomato scrambled egg steps: >>>More
Beef brisket stewed with potatoes.
Cut the beef brisket into small pieces and stir-fry in oil, add some green onions, ginger and garlic, add more water to steam until it is almost rotten, add potatoes, carrots, and beans and stew until cooked. >>>More
Chop the fish head with peppers. Material.
Ingredients: Fish head (big-headed fish), ginger, green onion. >>>More