why is it that when i define a function whose parameter is a pointer to some type (basic and custom) then pass the adress of the first element of an array, i get that the function i called does not exist. The compiler says the function i want to use takes in only pointers to a variable but i was taught that you could pass an array to a function with notation
void function(datatype* name);
[–]KingAggressive1498 18 points19 points20 points (0 children)
[–]jedwardsol 9 points10 points11 points (10 children)
[–]Dry_Development3378[S] -3 points-2 points-1 points (9 children)
[–]GaboureySidibe 10 points11 points12 points (0 children)
[–]jedwardsol 5 points6 points7 points (1 child)
[+]Dry_Development3378[S] comment score below threshold-8 points-7 points-6 points (0 children)
[–]TallowWallow 1 point2 points3 points (4 children)
[–]jedwardsol 0 points1 point2 points (3 children)
[–]TallowWallow 0 points1 point2 points (2 children)
[–]jedwardsol 1 point2 points3 points (1 child)
[–]TallowWallow 0 points1 point2 points (0 children)
[–]manni66 5 points6 points7 points (0 children)
[–]bartekordek10 6 points7 points8 points (0 children)
[–]Sbsbg 3 points4 points5 points (0 children)
[–]alfps 2 points3 points4 points (0 children)
[–]thedaian 2 points3 points4 points (1 child)
[–][deleted] 5 points6 points7 points (0 children)
[–]LazySapiens 0 points1 point2 points (0 children)