What will be the output of this code in C programming language
/* print: my first program in C */*
Answers
No output
because there is no command used to print
Error will be displayed.
Explanation:
According to the user expectation here may be the print statement must print the text "my first program in C". But when we see the syntax of C Program, the multi-line comment actually starts with /* and ends with */.
According to the given statement, there is a comment followed by a "*". So this "*" will be treated as operand since it is out of comment, it will be treated as an operator and will expect an operand.
Since the operand is absent, it will display error and mostly it will be compile time error since it is an error in the syntax.
To Know more:
1. https://brainly.in/question/610004
Find the Output of the Given C Code
What does the following program print? #include int sum,count; void main(void) {< BR> for(count=5;sum+=--count;) printf("%d",sum); } a. The program goes to an infinite loop b. Prints 4791010974 c. Prints 4791001974 d. Prints 5802112085 e. Not sure
2. https://brainly.in/question/8919501
Find the output of the following ‘C’ program
# include
main ( )
{ int i=5;
While (i)
{i - -;
if (i = = 3)
break;
Printf (“%d”, i);
}
}
2.