anonymous
  • anonymous
can somebody pls tell me the method to get a string from user and then print the string entered by the user also to do any kind of manipulation or operations in it by using for loop or any other loop method and also i dont want to use gets for getting the string???
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
shadowfiend
  • shadowfiend
Are you using C? Why don't you want to use gets? You can also use getc I suppose.
anonymous
  • anonymous
you can use fgets (with stdin as the FILE*) as an alternative to gets. If you don't want to use anything like fgets or scanf, you can use getchar :-D
anonymous
  • anonymous
now i just wanna use scanf but that is not a big problem the problem is how will i manipulate that string incase i have to do any operation on it...for example let me give u a programme and u tell me the coding 1.)MAKE A PROGRAMME TO GET A STRING FROM A USER (NOT USING GETS) AND REPLACE ALL THE "A" AND "B" IN THE STRING BY "?"(QUESTIONMARK) YES U HAVE TO MAKE IT IN C

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
http://ideone.com/87Wdm
anonymous
  • anonymous
you can use an array for that purpose and a for loop

Looking for something else?

Not the answer you are looking for? Search for more explanations.