The code excerpt: … produces error message … How do I convert argv?
000 000 0x00 00000000 NUL (Null char.)
Actually, it doesn’t convert the datatype of <char> (assuming it’s a variable), although the result of the expression will be an int. The datatype isn’t actually changed (and in fact, the math is done on C integers of various sizes). What you’re really asking is why does this...
On line 43 I am getting the error "cannot convert char** to char*. I don't quite understand why. Is it an issue with the use of 'atoi'?
char string[4]="abc"; string[0]='f'; were equivalent. But the first line gives me an error
...(101),CHAR(109),CHAR(109),CHAR(97)),0x3a,floor(rand()*2))x from (select 1 union select 2)a
Хоть char и относится к integer (и, таким образом, следует всем их правилам), работа с char несколько отличается, чем с обычными целочисленными типами. Переменная этого типа занимает 1 байт.