The document outlines an assignment focused on the C programming language, covering topics such as its features, header files, comments, types of errors, data types, variables, operators, and input/output functions. It includes programming tasks that require writing code for various operations, such as arithmetic calculations, array manipulations, string handling, and algorithm implementations. The assignment is due on 2080/10/29.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views
Assignment-I
The document outlines an assignment focused on the C programming language, covering topics such as its features, header files, comments, types of errors, data types, variables, operators, and input/output functions. It includes programming tasks that require writing code for various operations, such as arithmetic calculations, array manipulations, string handling, and algorithm implementations. The assignment is due on 2080/10/29.
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
Assignment-I
1. What is c programming language? Write its feature and advantage/disadvantage.
2. What is header file? Write frequently used header files with its description and functions. 3. What is comment? Write its type with example. 4. Explain types of error with example. 5. Explain Basic data types in C with example. 6. Explain local, global, static variable with example. 7. Explain types of specifier with example. 8. Explain different types of operators with example. 9. Explain formatted I/O functions with example. 10. Difference between formatted I/O and unformatted I/O. 11. Explain if(), if() else, nested if() else, if() else if() else condition with syntax and example. 12. Explain switch case with syntax and example. 13. Explain for, while and do while loop with syntax and example. 14. Compare for, while and do while loop. 15. What is array? Explain its type with syntax and example. 16. What is string? Explain different string functions with syntax and example. 17. WAP to input, name, age, section, and marks of a person and print it in proper format. 18. WAP to input and number and print it is zero or positive or negative. 19. WAP to input two number and a character and do following operation: ● If character is ‘+’ then print sum of two number. ● If character is ‘-‘ then print difference of two number. ● If character is ‘*’ then print multiplication of two number. ● If character is ‘/’ then print division of two number. ● If character is anything else print “invalid operator”. ● Example: + 2 10 then output = 12 20. WAP to input a number and print it is even or odd using switch case. 21. WAP to print all the co-prime between 1 to 100000. [co-prime is a number which is the product of prime number] Example: 15 is a co-prime because it is the product of 3 and 5 which is prime number. 22. WAP to print the prime factor of any number. Example: input = 24 : output = 2 2 2 3 23. WAP to print hcf and lcm of two number. 24. WAP to input n numbers in an array and find the greatest and lowest value from the array with their array. 25. WAP to input n numbers in an array and sort the array and print the sorted array. 26. WAP to input two 3x3 array and print its sum, difference and product. 27. WAP to input a 3x3 array and print its inverse. 28. WAP to input a string and print it is a palindrome or not. 29. WAP to count the total number of vowels and consonants in a string. 30. WAP to input a string and print “YES” if it contains all vowel other “NO”. 31. WAP to input a string and count every alphabets and print. Example: input: aabacbacd Output: a = 4 b = 2 c = 2 d = 1 “consider input string contains only lowercase alphabets” 32. WAP to input n Strings from user and store it in array and print the string in sorted order [dictionary order]. Deadline: 2080/10/29