C
Programming and Technical
Programming
Output
The body of the loop contains only a semicolon, known as a
Read Solution (Total 5)
-
- The body of the loop which contains only a semicolon is known as NULL STATEMENT.
These kind of scenarios are generally used in generating time delays in Embedded C - 9 years agoHelpfull: Yes(3) No(0)
- i*2=5*2=10
i++
i=i+1
i=5+1
6
Ans: 10, 6 - 9 years agoHelpfull: Yes(2) No(1)
- or
- 9 years agoHelpfull: Yes(0) No(1)
- to make loop infinite loop,we can use semicolon
- 9 years agoHelpfull: Yes(0) No(0)
- Empty loop
- 9 years agoHelpfull: Yes(0) No(0)
C Other Question
Given an array of non-negative integers. Find if the array can be sorted(ascending) in single swap of two numbers or not. ex1 :- A = [12,14,23,42,28,33,39,25,45] should return true. since swapping 42 and 25 will sort the array A. ex2 :- A = [12,14,23,42,28,33,22,25,45] should return false.
void main()
{
int i=5;
printf("%d%d",i*2,i++);
getch();
}
what will be the output: