Beruflich Dokumente
Kultur Dokumente
What is the difference bet while and do while loop? 4. Write C program to find the greatest of 3 nos using ternary operator. 5. List out the different data types available in C. 6. Differentiate between logical AND and bitwise AND. 7. What is type casting ? 8. Differentiate between equal to and assignment operator. 9. What is the output of the following program ? void main() { int a=10,b=13,c; clrscr(); c=!((a++>++b))?a:b; printf(Result:%d,c); getch(); } PART B 10.(i) Write an algorithm and draw flow chart for the following sequence,12+22+32+n2 (ii) Explain switch case statement with an example. Or (i) Write an algorithm and the flowchart for finding the sum of all digits in a given number.
(ii) What are the different flow chart symbols used ? List the advantages of using flowcharts.
11.(i) Discuss briefly the categories of operators with an example. (ii) Write a C program to reverse the digits of a number. Or (i)Write a C program to generate the Fibonacci series upto 10 nos. (ii) Write the output of the following program and explain it. void main() { int A=65,B=5,C; C=A+B++; printf(\n%c,A); printf(\n%d,C); printf(\n%d,--A); printf(\n%d,C++); printf(\n%d%d%d,++A,B++,--C); printf(\n%c,A+++B); getch(); }