No products in the cart.

Write code for a function in …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write code for a function in c++ which repositions all the elements of array by shifting each of them one to one position before and by shifting the first element to the last position
  • 2 answers

Vidushi Shukla 5 years, 6 months ago

Use swapping till size-1 it will automatically bring the first element to the last

Prerna Sharma 5 years, 6 months ago

Just giving uh the logic a=b; b=c; c=a; Or For eg. a=arr[i]; arr[i]=arr[n-i-1]; arr[n-i-1]=a;
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App