Computer Science, asked by aksinan701, 6 months ago

#include<stdio.h>
int main()
{
const char *5 = ";
char str[] = "1234";
S = str;
while(*s)
printf("%c", *s++);
return 0;
}​

Answers

Answered by ramansinghji6
4

Answer:

O don't know the answer bro

Answered by mindfulmaisel
0

"1234" is the required output

Explanation:

There are two errors in the given program.

1. In function ‘main’:

error:

‘S’ undeclared (first use in this function)

    S = str;

2. In function ‘main’:

error:

expected identifier or ‘(’ before numeric constant

    const char *5 = "";

After correcting the program:

#include<stdio.h>

int main(){

   const char *t = "";

   char str[] = "1234";

   char *S = str;

   while(*S){

       printf("%c", *S++);

   }

   return 0;

}

hence, we get the output as: 1234

Similar questions