Why exactly sizeof fxn isnt working?
hello @sr30
when we pass array in function then only base address of array is passed as a pointer.
so when ur are doing sizeof(a) inside function it is treating a as pointer and hence giving u the same warning.
dont use sizeof inside function . pass size of the array while calling the function
1 Like