• Home
  • Basic
    • Practical Electrical
    • Electrical
    • Transformer
    • Alternator
    • Transmission
    • Induction motor
  • Electronics
  • Relay
    • Generator Protection
  • Interview
  • Difference
  • Gate
  • Contact
  • About
Search
Electrical4u
  • Home
  • Basic
    • Practical Electrical
    • Electrical
    • Transformer
    • Alternator
    • Transmission
    • Induction motor
  • Electronics
  • Relay
    • Generator Protection
  • Interview
  • Difference
  • Gate
  • Contact
  • About
Home Gate Solved Gate CS-2004 Question Paper With Solutions
  • Gate Solved

Gate CS-2004 Question Paper With Solutions

    Facebook
    WhatsApp
    Twitter
    Pinterest
    Email

Q. 76 Consider the following C function

int f(int n)
{
    static int i = 1;
    if (n ≥ 5)
        return n;
    n = n + i;
    i++;
    return f(n);
}

The value returned by f(1) is

(A) 5

(B) 6

(C) 7

(D) 8

Answer: (C)

Explanation:

Gate CS-2004 Question Paper With Solutions

Learn More:   Gate ME-2009 Question Paper With Solutions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Previous articleGate CS-2018 Question Paper With Solutions
Next articleGate EE-2007 Question Paper With Solutions
Manimuthu Ayothi

RELATED ARTICLESMORE FROM AUTHOR

Gate ME-2006 Question Paper With Solutions

Gate ME-2007 Question Paper With Solutions

Gate CS-2015-3 Question Paper With Solutions

Gate ME-2008 Question Paper With Solutions

Gate ME-2009 Question Paper With Solutions

Gate ME-2010 Question Paper With Solutions

Gate ME-2011 Question Paper With Solutions

Gate ME-2012 Question Paper With Solutions

Gate ME-2017-1 Question Paper With Solutions

Gate ME-2013 Question Paper With Solutions

Gate ME-2017-2 Question Paper With Solutions

Gate ME 2014-4 Question Paper With Solutions

LEAVE A REPLY Cancel reply

Please enter your comment!
Please enter your name here
You have entered an incorrect email address!
Please enter your email address here

Recent Posts

  • Copper Round Hollow Tube Weight Calculator, Formula, Copper Round Hollow Tube Weight CCalculation
  • Copper Square Angle Weight Calculator, Formula, Copper Square Angle Weight Calculation
  • Copper Square Hollow Tube Weight Calculator, Formula, Copper Square Hollow Tube Weight Calculation
  • Copper C Channel Weight Calculator, Formula, Copper C Channel Weight Calculation
  • Copper T-Bar Weight Calculator, Formula, Copper T-Bar Weight Calculation
  • Carbon Steel C Channel Weight Calculator, Formula, Carbon Steel C Channel Weight Calculation
  • Carbon Steel T-Bar Weight Calculator, Formula, Carbon Steel T-Bar Weight Calculation
  • Copper Round Bar Weight Calculator, Formula, Copper Round Bar Weight Calculation
  • Copper Flat Sheet Weight Calculator, Formula, Copper Flat Sheet Weight Calculation
  • Carbon Steel Square Angle Weight Calculator, Formula, Carbon Steel Square Angle Weight Calculation
  • Carbon Steel Square Hollow Tube Weight Calculator, Formula, Carbon Steel Square Hollow Tube Weight Calculation
  • Carbon Steel Round Hollow Tube Weight Calculator, Formula, Carbon Steel Round Hollow Tube Weight Calculation
  • Carbon Steel Round Bar Weight Calculator, Formula, Carbon Steel Round Bar Weight Calculation
  • Carbon Steel Flat Sheet Weight Calculator, Formula, Carbon Steel Flat Sheet Weight Calculation
  • Carbon Fiber C Channel Weight Calculator, Formula, Carbon Fiber C Channel Weight Calculation

Categories

  • Alternator
  • app
  • Basic Relay
  • Calculator
  • Chemistry
  • Computer
  • Contactor
  • Definition
  • Difference
  • Electrical
  • Electrical Basic
  • Electrical Definition
  • Electrical gate Question
  • Electrical License
  • Electronics
  • Energy calculation
  • Faults
  • Gate Solved
  • Hosting
  • Induction motor
  • Instrumentation
  • Interview Questions
  • MicroProcessor
  • NamePlate Details
  • Network
  • Practical Electrical
  • Protection
  • Starters
  • Switch
  • Synchronous Motor
  • Transformer
  • Transistor
  • Transmission
  • Unnoticed
  • USA
  • Useful Information
  • VFD
  • Home
  • Basic
    • Practical Electrical
    • Electrical
    • Transformer
    • Alternator
    • Transmission
    • Induction motor
  • Electronics
  • Relay
    • Generator Protection
  • Interview
  • Difference
  • Gate
  • Contact
  • About
© 2017 - 2020 Electrical4u