Computer Science, asked by sainithisha, 9 months ago

"What will be the output of the following program, on a 32 bit processor?
int main()
{
short i =
= 1;
char s;
char *5 = p00000000000000000;
char *X;
x = &S;
strncpy(x, s, sizeof(x));
printf("1 = %d", i);
return 1;​

Answers

Answered by Anonymous
18

sorry but don't understand the question

Answered by diksha502rawat
1

Answer: The program will not compile

Explanation: I am assuming everything need to be corrected (ie. it's not char*5 but it is char*s and everything else) it will not compile beacuse any string must be quoted in " " and multiple declaration of s is not allowed

Similar questions