filmov
tv
Programming Language GATE-2015 Problem Solution

Показать описание
Consider the following C program:
# include stdio.h
int main( )
{
int i, j, k = 0;
j = 2 * 3 / 4 + 2.0 / 5 + 8 / 5;
k -= --j;
for (i = 0; i lessThan 5; i++)
{
switch(i + k)
{
case 1:
case 2: printf("n%d", i + k);
case 3: printf("n%d", i + k);
default: printf("n%d", i + k);
}
}
return 0;
}
The number of times printf statement is executed is __________.
GATE CSE 2015 Set 3 Question: 48
Switch Case Control Statements In C Tutorial in Hindi
Switch statement in C programming | What is switch case?
Conditionals (Switch) in Hindi
Pass by Value VS Pass by Reference
Call By Value and Call By Reference in C
Pass by Value | Pass by Reference
Variable in C programming in hindi | what is variable? Types of Variables in c in hindi
Variables & Data Types In C
Variables in C Programming | Programming in C
Introduction to Variables in C
Variables in C | C Language Tutorial
Arrays In C
Arrays in C | Introduction to Arrays
Arrays & Pointers in C
Array in C language
Pointers In C
Arrays & Pointers in C
Introduction to Pointers in C
Strings In C: C Tutorial In Hindi
Strings in C - part 1 | C programming tutorials
Strings in C
Strings in C Programming | Concept of Strings in C Programming
Recursion in C
Recursion in C | Introduction to Recursion
Recursive Functions: Recursion In C
Recursion in C | Recursive function in c programming
GATE CSE Preparation Strategy | Computer Science Preparation Strategy
How to Prepare for GATE CSE
GATE CSE Videos | GATE CSE PYQs Solution
GATE CSE Tips and Tricks
How I cracked GATE exam | Preparation strategy for GATE exam
How to Crack GATE Exam in First Attempt
How to Prepare For GATE Without Coaching
How to Crack GATE Exam Without Coaching
GATE Exam Preparation Strategy
How to Crack GATE by Self Study
Improve Score in GATE | Crack GATE Tricks
Benefits of GATE EXAM | How to PREPARE WITH or WITHOUT Coaching
#computerscience #computerscienceengineering #computersciencemcqs #computersciencevideos #gate #gateexam #gatecse #gatecomputerscience #gatecs #gatecsit #gate2011 #gate2023 #gate2023classes #gate2023preparation #gatepyqs #gatepyq #gatetips #gatetricks #gatepreparation #gateprepdaily #gatepreparationstrategy #gatepreviousyearquestions #gateprevioussolvedquestions #gatestrategy #gateexamprep #crackgateexam #crackgate #shortcut #shortcuts #shortcutsforstudents #shortcutvideo #btech #btechcse #btechit #bca #mca #kshitijsahu #gateq #datastructure #datastructures #datastructureandalgorithm #datastructuresandalgorithms #datastructureandalgorithms #algorithm #algorithms #designandanalysisofalgorithms #programming #programminglanguage #programminginhindi #programmer #clanguage #clanguageprogramming #programminglanguages #programminglanguages2020 #programminglanguages2021 #array #arrays #arraysinc #recursion #functioninc #pointersinc #callbyreference #callbyvalue #string #strings #forloop #forloops #switch #switcscase #gate2015
# include stdio.h
int main( )
{
int i, j, k = 0;
j = 2 * 3 / 4 + 2.0 / 5 + 8 / 5;
k -= --j;
for (i = 0; i lessThan 5; i++)
{
switch(i + k)
{
case 1:
case 2: printf("n%d", i + k);
case 3: printf("n%d", i + k);
default: printf("n%d", i + k);
}
}
return 0;
}
The number of times printf statement is executed is __________.
GATE CSE 2015 Set 3 Question: 48
Switch Case Control Statements In C Tutorial in Hindi
Switch statement in C programming | What is switch case?
Conditionals (Switch) in Hindi
Pass by Value VS Pass by Reference
Call By Value and Call By Reference in C
Pass by Value | Pass by Reference
Variable in C programming in hindi | what is variable? Types of Variables in c in hindi
Variables & Data Types In C
Variables in C Programming | Programming in C
Introduction to Variables in C
Variables in C | C Language Tutorial
Arrays In C
Arrays in C | Introduction to Arrays
Arrays & Pointers in C
Array in C language
Pointers In C
Arrays & Pointers in C
Introduction to Pointers in C
Strings In C: C Tutorial In Hindi
Strings in C - part 1 | C programming tutorials
Strings in C
Strings in C Programming | Concept of Strings in C Programming
Recursion in C
Recursion in C | Introduction to Recursion
Recursive Functions: Recursion In C
Recursion in C | Recursive function in c programming
GATE CSE Preparation Strategy | Computer Science Preparation Strategy
How to Prepare for GATE CSE
GATE CSE Videos | GATE CSE PYQs Solution
GATE CSE Tips and Tricks
How I cracked GATE exam | Preparation strategy for GATE exam
How to Crack GATE Exam in First Attempt
How to Prepare For GATE Without Coaching
How to Crack GATE Exam Without Coaching
GATE Exam Preparation Strategy
How to Crack GATE by Self Study
Improve Score in GATE | Crack GATE Tricks
Benefits of GATE EXAM | How to PREPARE WITH or WITHOUT Coaching
#computerscience #computerscienceengineering #computersciencemcqs #computersciencevideos #gate #gateexam #gatecse #gatecomputerscience #gatecs #gatecsit #gate2011 #gate2023 #gate2023classes #gate2023preparation #gatepyqs #gatepyq #gatetips #gatetricks #gatepreparation #gateprepdaily #gatepreparationstrategy #gatepreviousyearquestions #gateprevioussolvedquestions #gatestrategy #gateexamprep #crackgateexam #crackgate #shortcut #shortcuts #shortcutsforstudents #shortcutvideo #btech #btechcse #btechit #bca #mca #kshitijsahu #gateq #datastructure #datastructures #datastructureandalgorithm #datastructuresandalgorithms #datastructureandalgorithms #algorithm #algorithms #designandanalysisofalgorithms #programming #programminglanguage #programminginhindi #programmer #clanguage #clanguageprogramming #programminglanguages #programminglanguages2020 #programminglanguages2021 #array #arrays #arraysinc #recursion #functioninc #pointersinc #callbyreference #callbyvalue #string #strings #forloop #forloops #switch #switcscase #gate2015