Scope and Lifetime

Questions

  • 1

    register keyword

    bambhole
    Reply

    why global variable can’t be declared with register keyword??

  • 0

    keyword

    bambhole
    Reply

    why global variable can’t be declared with register keyword?

  • 1

    Which error exactly?

    vrundapro
    Reply

    At 51.07 Its which error? Compiler error or linking error?You have mentioned both.confused!

    • vrundapro

      Sorry got it. Linking error

  • 0

    At 1.22.42 you have written 10 10 as output for static but i think its 5 10 as g() is surrounded by f()

    sanjaytwo
    Reply

    Is there any mistake??

  • 0

    sir what does linking time means ?what u mean by linking?52;20

    adharpro
    Reply

    i cannot get what is linking

  • 1

    sir what does linking time means ?what u mean by linking?52;20

    adharpro
    Reply

    i cannot get what is linking?u said first compilation then linking then execution?what is linking

    • getgatebook

      Linking is the final stage of compilation. It takes one or more object files or libraries as input and combines them to produce a single (usually executable) file. In doing so, it resolves references to external symbols, assigns final addresses to procedures/functions and variables, and revises code and data to reflect new addresses (a process called relocation).