Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

error solve to this program

0 votes
asked May 4, 2018 by vivek
int main()
{

char x[] = F.Y. B.TECH. " , p;
int i = 0
p = x
while ( i = 10)
{
i = i + 2;
p+;
printf("%c",*p);
}
}

5 Answers

0 votes
answered Jul 6, 2018 by Akhila Mekapothula (460 points)
1.multiple characters shouled initialize in double quotations

2.int I=0;

3.p=x

4.p++;

;5. main problem is program not entering the while loop because if(i==10)

then only while loop will be executed
0 votes
answered Jul 9, 2018 by AFRIDI (140 points)

multiple characters shouled initialize in double quotations

int I=0;

p=x

p++;

main problem is program not entering the while loop because if(i==10)

then only while loop will be executed

0 votes
answered Jul 9, 2018 by Sivapriya s
1.Undefined symbol
2.declaration syntax error
3.p++
4.loop is different for this program
0 votes
answered Jul 9, 2018 by SPANDANA KUMBHAM (140 points)

int main()
{

char x[] = F.Y. B.TECH;

char p;
int i = 0;
p = x;
while ( i == 10)
{
i = i + 2;
p++;
printf("%c",*p);
}
}

0 votes
answered Jul 10, 2018 by nawab

void main()

{

 char x[]="F.Y.B.TECH.",p;

int i=0;

p=x;

while(i<10)

{

i=i+2;

p+;

printf("%c",*p);

}

}

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...