Sobes.tech
Junior — Senior

Prohibition of passing a char type argument to a function

livecode

Task condition

Create a program in which an attempt to call a function with a parameter of type char will be invalid.

#include <iostream>

void process(int num) {
    // function implementation
}

int main() {
    process(10);   // valid call
    process('3');  // should be disallowed by the compiler
    return 0;
}