Assignment-6

divider
Question-1

Q1. WAP to print the address/values of the different variables (int,float,char) using & and * operators.

Question-2

Q2. WAP to find out the difference between %u, %p, %x while printing the address of a variable.

Question-3

Q3. Check the size of various pointer variables for int, char, float etc.

Question-4

Q4. Verify the addresses of adjacent elements stored in an array of char, int, float.

Question-5

Q5. Swap variables using pointers and functions.

Question-6

Q6. WAP to pass and return an array out of a function.

Question-7

Q7. WAP for dynamic memory allocation using malloc() and free().

Question-8

Q8. What is dynamic memory allocation? Practice malloc(), calloc(), realloc() and free() functions.

Question-9

Q9. WAP to copy one string to another string with and without using the string handling function.

Question-10

Q10. WAP for the following
U N
U N I V
U N I V E R
U N I V E R S I
U N I V E R S I T Y
U N I V E R S I
U N I V E R
U N I V
U N

Question-11

Q11.WAP to concatenate two strings and compare two strings.

Question-12

Q12. Count vowels in a given string.