asd

asd
mail@pastecode.io avatar
unknown
plain_text
2 years ago
730 B
1
Indexable
Never
/*
void SizeOfString(char* str)
{
	int counter = 0;
	while (*str != '\0')
	{
		counter++;
		str++;
	}

	printf("The length of the string is =%d", counter);

}

int main()
{
	char myArray[] = "Alex";
	
	SizeOfString(myArray);

}
*/


/*
void Min_Max(int num, int* min, int* max)
{

	int current;
	*min = num % 10;
	*max = num % 10;
	num = num / 10;
	while (num > 0)
	{
		current = num % 10;
		num = num / 10;

		if (current < *min)
			*min = current;
		if (current > *max)
			*max = current;
	}
}

int main()
{
int num;
int max=0, min=0;
	printf("Enter a number ");
	scanf("%d", &num);
	Min_Max(num, &min, &max);

	printf("Minimum = %d\nMaximum = %d", min, max);



}
*/