9.Question Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d = '1'; Expression: a % b Enter answer here 10.Question Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d = '1'; Expression: b % a Enter answer here 11.Question Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d = '1'; Expression: a 3 Enter answer here 13.Question Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d = '1'; Expression: a / b > c Enter answer here 14.Question Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d = '1'; Expression: c = a++ Enter answer here 15.Question Assume the given declarations and fill in the value of the expression . int a = 1, b = 2, c = 3; Expression: a - b * c Enter answer here 16.Question Assume the given declarations and fill in the value of the expression . int a = 1, b = 2, c = 3; Expression: c / a * b Enter answer here 17.Question Assume the given declarations and fill in the value of the expression . int a = 1, b = 2, c = 3; Expression: a++ + --b Enter answer here 18.Question Assume the given declarations and fill in the value of the expression . int a = 1, b = 2, c = 3; Expression: b = a = c Enter answer here 19.Question Assume the given declarations and fill in the value of the expression . int i = 0, j = 1, k = 2; Expression: i && j Enter answer here 20.Question Assume the given declarations and fill in the value of the expression . int i = 0, j = 1, k = 2; Expression: !!i Enter answer here 21.Question Assume the given declarations and fill in the value of the expression . int i = 0, j = 1, k = 2; Expression: i || !k Enter answer here 22.Question Assume the given declarations and fill in the value of the expression. int i = 0, j = 1, k = 2; Expression: (i && (j = k)) || (k > j) Enter answer here 23.Question If a function’s declaration is int foo(void): 1)The function must return 0 2)The function has no arguments 3)The function does not need a return statement 4)The function should not have a printf in its definition 24.Question In ANSI standard C(1989) code - this is what we are teaching- declarations can occur in a for statement as in for(int i; i < 10; i++0 … 1)True 2)False
Answers
Answered by
6
Answer:
Operators are symbol which tells the compiler to perform certain operations on variables. For example, (*) is an operator which is used for multiplying two numbers.
There are different types of operators in C. Let's take a look at each type of them with few examples of each.
Arithmetic Operators
Relational Operators
Increment and Decrement Operators
Logical Operators
Assignment Operators
Arithmetic Operations
Arithmetic Operators are the type of operators which take numerical values (either literals or variables) as their operands and return a single numerical value.
Let's assume, 'a' is 8 and 'b' is 4.
Answered by
22
Answer:
Question Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d = '1'; Expression: a % b
Similar questions