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???
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
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.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
Are you using C? Why don't you want to use gets? You can also use getc I suppose.
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
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