• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 39 pages
Class notes

Class notes CSE (CSE101) Advances in Computer Science for Engineering and Education III, ISBN: 9783030555061

Document preview thumbnail
Preview 4 out of 39 pages

Lecture notes study book Advances in Computer Science for Engineering and Education III of Zhengbing Hu, Sergey Petoukhov, Ivan Dychka, Matthew He (Functions and recursions) - ISBN: 9783030555061 (CSE notes)

Content preview

,• int i = 5; int a = --i - --i - --i - --i;
• A=4- --I - --I - --I //i=4
• A=4-3 - --I - --I //i=3
• A=3-3- 2 - --i//i=2
• A=2-2-2-1=-3 //i=1

,MCQ 27
• #include<stdio.h>
• int main()
• {
• int i = 5; int a = --i + ++i - i-- + --i; printf("%d",a);
• return 0;
•}
• A. 7
• B. 9
• C. 8
• D. 10

, SOLUTION
• a = --i + ++i - i-- + --i
• a = 4 + ++i - i-- + --i// i=4
• a = 4 + 5 - i-- + --i//i=5
• a = 5 + 5 - 5 + --i//i=4
•a=5+5-5+3
• Finally a = 8. got it?

Connected book
 image
Zhengbing Hu, Sergey Petoukhov, Ivan Dychka, Matthew He Advances in Computer Science for Engineering and Education III
Publisher: 2020 ISBN: 9783030555061 Edition: Unknown

Document information

Uploaded on
October 31, 2021
Number of pages
39
Written in
2021/2022
Type
Class notes
Professor(s)
Dr. krishan bansal
Contains
All classes
$3.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
4
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions