// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;
contract test7 {
function getNum() public pure returns(uint256[4] memory,string memory) {
string[4] memory _a = ['1','2','3','4'];
uint256[4] memory a = [1,2,3,4]; // error
return (a,_a);
}
}
What is the difference between string and uint(int) in solidity?
As in the code above, why is uint not like string?