Lab 11
Lab 11
Lab 11
h>
int main() {
long value1 =
200000; long
value2;
long *lPtr;
lPtr = Cvalue1;
Cvalue1) {
} else {
*bptr = *aptr;
*aptr = *cptr;
*cptr = temp;
}
int main()
{ int a,
b, c;
+) { sum += *(arr +
i);
return sum;
int main()
{ int n;
int
arr[n];
int
sum;
scanf("%d", Cn);
printf("Enter %d integers:\n",
{ float h = 0;
float sh = 0;
+) { if (*(arr + i) >
h) {
sh = h;
h = *(arr + i);
return sh;
int main() {
float arr[20];
float sh;
printf("Enter 20 float numbers:\
sh =secondhighest(arr,
20); if (sh == 0) {
printf("No second highest number found (all numbers may be the same).\
n");
} else {
arr[j] = arr[j +
1]; arr[j + 1] =
temp;
int main() {
int size;
int order;
scanf("%d", Csize);
printf("Enter %d integers:\n",
printf("Sorted array:\n");
+) { printf("%d ",
arr[i]);
Q6) #include
<stdio.h> int
main() {
int a[10];
i++) { a[i] = i * i;
Q7) No, error message will be displayed because this assignment involves
incompatible pointer types.