Professional Documents
Culture Documents
DSA Assignment 1 Final
DSA Assignment 1 Final
2) Write a function to find the binary equivalent of a given decimal integer and display it
3) Explain the concept of function pointer with example
8) Write a function that e iciently merged two sorted arrays into a single sorted array,
utilizing dynamic memory allocation [Ex a = {1, 3, 5} b = {2, 6, 7} output {1, 2, 3, 4, 5, 6, 7}]
9) Write a function to return the total number of 1s in any user defined integer number
passed as parameter to function [Ex input 10 output 2]
10) Write a function using call by reference method to swap two numbers using XOR
gate
11) Write a program to manage an employee payroll system using structures to store
information such as employee ID, name, salary, etc. Implement functions for salary
calculations, deduction, and displaying employee details