The document is an assignment for the Programming for Problem Solving course at Vidhyadeep Institute of Engineering and Technology. It includes various tasks related to control statements, loops, arrays, and string manipulation in C programming. Students are required to define concepts, explain with examples, and write specific programs as part of their coursework.
The document is an assignment for the Programming for Problem Solving course at Vidhyadeep Institute of Engineering and Technology. It includes various tasks related to control statements, loops, arrays, and string manipulation in C programming. Students are required to define concepts, explain with examples, and write specific programs as part of their coursework.
AND TECHNOLOGY Vidhyadeep Campus, Anita (Kim), Ta. Olpad, Dist. Surat
Subject Name: Programmimg for problem solving Code: 3110003 Sem:1st
Assignment_3 UNIT: III & IV
1. Define control statement and state any four of them.
2. Explain if statement with the help of flowchart and write a small program. 3. Explain switch case in C with the help of an example. 4. Difference between if and switch statement. 5. Explain loops in C programming with example. 6. Write a program to accept an integer number and print whether it is palindrome or not. 7. Write a program to find out sum of numbers from 1 to 100. 8. Difference between while loop and do-while loop. 9. Discuss general form of following decision-making statement – goto. 10. What is array? Write characteristics and its advantages. 11. Discuss initialization of one-dimensional array with example 12. Explain types of array. 13. Write a program to find smallest/minimum number in an integer array. 14. Write a program in C for multiplication of two matrix. 15. What is string? How to display character and string? 16. Explain following string manipulation functions. Strcmp(), strlen(), strcat() 17. Write a program to compare two string. 18. Write a program to accept two string and check whether they are equal or not.