I have long value of 12 digits as output from an arithmetic operation. So i want only the middle 4 value. for example i got 823954957346 and i only want 5495 to store in a variable. can i do this in C or C++ ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use something like:
Output: