Get premium membership and access questions with answers, video lessons as well as revision papers.
The program is simple and well explained by use of comments in the portable document file below.
The decision making statements in the question is contradicting due to confusion in the logical operators but i have tried to fix it in the code.
Note:< is less than
> is greater than
caxtonmuthoni answered the question on May 8, 2018 at 17:12
- What is a union in C programming?(Solved)
What is a union in C programming?
Date posted: February 28, 2018. Answers (1)
- What is a data center?(Solved)
What is a data center?
Date posted: February 28, 2018. Answers (1)
- Why is data center security so important? (Solved)
Why is data center security so important?
Date posted: February 28, 2018. Answers (1)
- Differentiate Database administrator and web administrator(Solved)
Differentiate Database administrator and web administrator
Date posted: February 27, 2018. Answers (1)
- Give 3 reason why data and information in a computer system needs to be converted to other number systems other than binary. (Solved)
Give 3 reason why data and information in a computer system needs to be converted to other number systems other than binary.
Date posted: February 27, 2018. Answers (1)
- An organization is facing threats to data integrity. Explain three of how the threats can be minimized. (Solved)
An organization is facing threats to data integrity. Explain three of how the threats can be minimized.
Date posted: February 27, 2018. Answers (1)
- Outline two methods used to secure data in a database.(Solved)
Outline two methods used to secure data in a database.
Date posted: February 27, 2018. Answers (1)
- Give two ways in which ICT is used in shipping industry. (Solved)
Give two ways in which ICT is used in shipping industry.
Date posted: February 27, 2018. Answers (1)
- Which is the first web browser invented in 1990?(Solved)
Which is the first web browser invented in 1990?
Date posted: February 26, 2018. Answers (1)
- What will be the output of following program ?
1
2
3
4
5
6
7
8
9
10
11
12
#include < stdio.h >
int main()
{
int tally=0;
for(;;)
...(Solved)
What will be the output of following program ?
1
2
3
4
5
6
7
8
9
10
11
12
#include < stdio.h >
int main()
{
int tally=0;
for(;;)
{
if(tally==10)
break;
printf("%d ",++tally);
}
return 0;
}
0 1 2 3 4 5 6 7 8 9 10
0 1 2 3 ... infinite times
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9
Date posted: February 24, 2018. Answers (1)
- What will be the output of following program ?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include
void main()
{
int i=1;
while (i<=5)
{
...(Solved)
What will be the output of following program ?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include
void main()
{
int i=1;
while (i<=5)
{
printf("%d",i);
if (i==5)
goto print;
i++;
}
}
fun()
{
print:
printf("includehelp.com");
}
Date posted: February 24, 2018. Answers (1)
- What will be the output of following program ?
1
2
3
4
5
6
7
#include
void main()
{
char cnt=0;
for(;cnt++;printf("%d",cnt)) ;
printf("%d",cnt);
}(Solved)
What will be the output of following program ?
1
2
3
4
5
6
7
#include
void main()
{
char cnt=0;
for(;cnt++;printf("%d",cnt)) ;
printf("%d",cnt);
}
Date posted: February 24, 2018. Answers (1)
- What will be the output of following program ?
1
2
3
4
5
6
7
8
#include < stdio.h >
void main()
{ unsigned char var=0;
for(var=0;var<=255;var++)
...(Solved)
What will be the output of following program ?
1
2
3
4
5
6
7
8
#include < stdio.h >
void main()
{ unsigned char var=0;
for(var=0;var<=255;var++)
{
printf("%d ",var);
}
}
Date posted: February 24, 2018. Answers (1)
- What is the advantage of UNION in C?(Solved)
What is the advantage of UNION in C?
Date posted: February 24, 2018. Answers (1)
- Write a C language program to create file “odd” to store all odd numbers between 1 and n.(Solved)
Write a C language program to create file “odd” to store all odd numbers between 1 and n.
Date posted: February 24, 2018. Answers (1)
- Distinguish between character constant and string constant(Solved)
Distinguish between character constant and string constant.
Date posted: February 24, 2018. Answers (1)
- Explain in detail bitwise operators with example(Solved)
Explain in detail bitwise operators with example.
Date posted: February 24, 2018. Answers (1)
- Describe all operators used in C language with example(Solved)
Describe all operators used in C language with example.
Date posted: February 24, 2018. Answers (1)
- Explain the concept of files, records and fields(Solved)
Explain the concept of files, records and fields.
Date posted: February 24, 2018. Answers (1)
- What is built in function?(Solved)
What is built in function?
Date posted: February 24, 2018. Answers (1)