This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void printA(int * A, int LB, int UB) { | |
for (int i = LB; i <= UB; i++) | |
printf("%d\n", A[i]); | |
} | |
void swap(int * x, int * y) { | |
int t = * x; | |
* x = * y; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void swap(int *x, int *y) { | |
int t = *x; | |
*x = *y; | |
*y = t; | |
} | |
int main() | |
{ | |
int arr[5] = {1, 2, 3, 4, 5}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.7.0 < 0.9.0; | |
contract landRecords { | |
struct Admin { | |
string name; | |
string district; | |
} | |
struct User { | |
string name; | |
string docHash; |