levicorey846
levicorey846
05.11.2019 • 
Engineering

Write a function with declaration void minusoddcolumn(int** mat, int n) where n ≥ 1 and mat is an n × n 2d-array of non-negative integers. the function should find the column in mat with more odd numbers and replace all of its elements with -1. if multiple columns have the highest presence of odd numbers, the first of them (i.e. the one with the lowest index) should be chosen to have its elements replaced by -1

Solved
Show answers

Ask an AI advisor a question