5.
a) Develop a flowchart and then write a C program to display all prime numbers less than the number entered by the user.
b) Explain the difference between an array, structure and an enumerated data type.
a) Develop a flowchart and then write a C program to display all prime numbers less than the number entered by the user.
b) Explain the difference between an array, structure and an enumerated data type.
(10+5)
7. Develop a flowchart and then write a C program to find the occurrence (single or multiple) of a substring in a given string. The substring and string are entered by the user. Also point out the location at which the substring occurs.
8.
a) Explain the difference between parameter passing mechanism “Call by value” and “Call by reference”. Which is more efficient and why?
b) Develop a flowchart and logic to implement the stack data structure using link list.
9.
a) Draw a flowchart and then write a C program to enter the roll number and marks of any three subjects of few students from the keyboard and write to a file.
b) It is said that “C is a middle level language and is good for system level programming.” Describe three facilities available in ‘C’ which support this statement.
6. Write an algorithm and then develop a program to evaluate the roots of a quadratic equation. Define and use a function cal_roots() to calculate the roots such that roots are also available in calling function i.e. use pointers.
(15)
7. Develop a flowchart and then write a C program to find the occurrence (single or multiple) of a substring in a given string. The substring and string are entered by the user. Also point out the location at which the substring occurs.
(15)
8.
a) Explain the difference between parameter passing mechanism “Call by value” and “Call by reference”. Which is more efficient and why?
b) Develop a flowchart and logic to implement the stack data structure using link list.
(5+10)
9.
a) Draw a flowchart and then write a C program to enter the roll number and marks of any three subjects of few students from the keyboard and write to a file.
b) It is said that “C is a middle level language and is good for system level programming.” Describe three facilities available in ‘C’ which support this statement.
(10+5)
No comments:
Post a Comment