main()
{char a[10]={1,2,3,4,5,6};int x;
for(x=0;x<4;x++){ b[x]=x+'a';}
printf("%s",b);}

Answer Posted / lucky

it gives compilation error bcoz b is not defined

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is clrscr ()?

637


What is a sequential access file?

648


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

740


What is table lookup in c?

628


What is const volatile variable in c?

577






the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

646


What is a macro, and explain how do you use it?

629


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1816


Why doesnt long int work?

613


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1074


What happens if you free a pointer twice?

610


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1866


What is pointer to pointer in c language?

595


What is the difference between c and python?

586


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15048