Assignment no 1
Assignment no 1
usage?
arr[i] = i + 1;
}
printf("Array elements: ");
for (int i = 0; i < 5; i++) {
printf("%d ", arr[i]);
}
printf("\n");
free(arr);
return 0;
}
This program demonstrates the use of several built-in functions:
Mathematical functions: sqrt() (square root), pow() (power).
String manipulation functions: strcpy() (copy string), strcat() (concatenate strings).
Input/output functions: printf() (formatted output), scanf() (formatted input).
Memory allocation functions: malloc() (allocate memory), free() (free allocated
memory).