Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged dynamic-scoping
1.1k
views
4
answers
2
votes
NIELIT 2016 DEC Scientist B (IT) - Section B: 60
How will you free the allocated memory?remove(var-name)free(var-name)delete(var-name)dalloc(var-name)
admin
1.1k
views
admin
asked
Mar 31, 2020
Programming in C
nielit2016dec-scientistb-it
programming-in-c
dynamic-scoping
+
–
502
views
1
answers
1
votes
Self Doubt on scoping
int x = 5, y = 10 ; void main ( ) { int i = 2, j = 3 A (i, j); } void A (int i, int j) { int x = 10, y = 5 ; i = i + x ... scoping6.Dynamic scopingAny reference for call by name and call by needIs for static coping $12,17,54$ or $12,17,59$?
srestha
502
views
srestha
asked
Mar 23, 2019
Programming in C
programming-in-c
dynamic-scoping
parameter-passing
+
–
2.2k
views
2
answers
1
votes
Output Under Dynamic Scoping
#include<stdio.h> int x=10; int main() { static int x=10; x+=f1()+f2()+f3()+f1(); printf("%d",x); return 0; } int f1(){static int x=25;x++;return ... int f3(){x*=10;return x;}What is the output of the above code, if dynamic scoping is used.
Ayush Upadhyaya
2.2k
views
Ayush Upadhyaya
asked
Jan 3, 2019
Programming in C
dynamic-scoping
programming
+
–
345
views
1
answers
0
votes
Behaviour of dynamically scoped variables after returning from a function
Are any modifications to the value of a dynamically scoped variable persistent even after the function (in which modifications were made) returns? ... scoped variables essentially act like global variables in this particular regard?
kajivu
345
views
kajivu
asked
Dec 20, 2018
Programming in C
dynamic-scoping
programming-in-c
+
–
505
views
2
answers
0
votes
#self
Q. int k; fun(int i) { k = i + 3; printf(k); } gun( int i) { int k = 4; k = i+4; fun(k); printf(k); } main(){ k=2 ; gun(k); printf(k ... - 9,6,2 ( here last print statement i have doubt ..it will print 2 or 9)dynamic scoping- 9,9,2
Hradesh patel
505
views
Hradesh patel
asked
Jun 20, 2018
Programming in C
programming-in-c
static-scoping
dynamic-scoping
+
–
945
views
1
answers
3
votes
Dynamic Scoping
How to solve any dynamic scoping question . Plz describe in detail.
dragonball
945
views
dragonball
asked
Jan 14, 2018
Compiler Design
compiler-design
dynamic-scoping
+
–
2.2k
views
2
answers
1
votes
Dynamic Scope
What is the output of the following program if dynamic scoping is used? int a,b,c; void func1() { int a,b; a=6; b=8; func2(); a=a+b+c; print(a); } void func2(){ int b,c; ... (c); } void main(){ a=3; b=5; c=7; func1(); }7 1910 1 10 23 10 32
Ron111
2.2k
views
Ron111
asked
Nov 30, 2017
Programming in C
programming-in-c
scoping-rule
dynamic-scoping
+
–
472
views
2
answers
3
votes
dynamic scoping
int i=10;main(){int i =5,k,i=6;printf("enter value");scanf("%d",&k);if(k>0){fun1();}else{fun2();}}void fun1();{printf("%d",i);}void fun2();{int i=5;printf("%d",i);fun1();}what will the output using dynamic scoping?
set2018
472
views
set2018
asked
Oct 10, 2017
Programming in C
programming
dynamic-scoping
+
–
4.2k
views
1
answers
13
votes
static and dynamic scoping
int a=0,b=0; int main(void) { int a=3; printf("%d%d",a,b); c(); printf("%d%d",a,b); return 0; } void c() { printf("%d%d",a,b); a=4,b=5; printf("%d%d",a,b); d(); ... ,a,b); } void e(int b,int a) { printf(a,b); a=7;b=8; printf("%d%d",a,b); }
firki lama
4.2k
views
firki lama
asked
Jan 9, 2017
Programming in C
programming-in-c
static-scoping
dynamic-scoping
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register