C Programming and Technical

Q. What will be the result of the following code?
#define TRUE 0 // some code
while(TRUE)
{
// some code
}

A. This will not go into the loop as TRUE is defined as 0.

Read Solution (Total 0)

C Other Question

Q. Define Operator, Operand, and Expression in 'C'?

A. Operators are symbols which take one or more operands or expressions and perform arithmetic or logical computations. Operands are variables or expressions which are used in operators to evaluate the expression.
Combination of operands and operators form an expression
Q. What will be printed as the result of the operation below:
main()
{
int a=0;
if(a==0)
printf(“Cisco Systemsn”);
printf(“Cisco Systemsn”);
}