Programming for Problem Solving
Programming for Problem Solving
COM
VISIT :- https://gtustudy.com/ 1
GTUSTUDY.COM
7-Mark Questions:
1. Write a simple C program to demonstrate the use of different operators (arithmetic,
relational, logical).
2. Discuss the structure of a C program, explaining each part with an example.
VISIT :- https://gtustudy.com/ 2
GTUSTUDY.COM
Chapter 6: Pointers
3-Mark Questions:
1. What is a pointer in C? How are pointers and arrays related?
2. Define pointer arithmetic in C.
3. Explain the use of pointers to functions in C.
4-Mark Questions:
1. Demonstrate pointer operations in C with examples.
2. Write a program to swap two variables using pointers.
7-Mark Questions:
1. Write a program to demonstrate pointer arithmetic by performing addition and
subtraction operations.
2. Write a C program to use pointers to call a function and display the result.
VISIT :- https://gtustudy.com/ 3
GTUSTUDY.COM
VISIT :- https://gtustudy.com/ 4
GTUSTUDY.COM
VISIT :- https://gtustudy.com/ 5
GTUSTUDY.COM
*Disclaimer:*
VISIT :- https://gtustudy.com/ 6