Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged macros
488
views
1
answers
4
votes
what will be output and explain how
#include<stdio.h> #include<string.h> #define MAX(x, y) ((x) > (y) ? (x) : (y)) int main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i, j, k); return 0; }
ritwik_07
488
views
ritwik_07
asked
Jun 10, 2023
Programming in C
macros
programming-in-c
+
–
369
views
0
answers
0
votes
#self doubt
Assembler,Linker,Macros are there in compiler design?
samarpita
369
views
samarpita
asked
Dec 9, 2021
Compiler Design
compiler-design
macros
linker
assembler
+
–
382
views
1
answers
0
votes
Define keyword
Float pi = 3.14#define pi 3.14Why constant declaration with define is considered to be fast than above one?Thanks
Mayankprakash
382
views
Mayankprakash
asked
Jul 15, 2018
Programming in C
macros
+
–
3.4k
views
2
answers
5
votes
ISRO2018-67
In multi-programmed systems, it is advantageous if some programs such as editors anf compilers can be shared by several users.Which of the following must ... program is recursive The program is reentrantI onlyII onlyIII onlyI, II and III
Arjun
3.4k
views
Arjun
asked
Apr 22, 2018
Operating System
isro2018
operating-system
macros
+
–
994
views
1
answers
5
votes
Doubt
#include <stdio.h> #define A -B #define B -C #define C 5 int main(void) { printf("%d",A); return 0; }now my doubt here is, before compilaion i ... error and giving answer as 5, but macro implicitly never put precedence braces() itself...
joshi_nitish
994
views
joshi_nitish
asked
Nov 5, 2017
Programming in C
macros
+
–
3.4k
views
1
answers
2
votes
Use of macro instead of function is recommended.
Use of macro instead of function is recommended.(a) when one wants to reduce the execution time(b) when there is a loop with a function call inside(c) when a function is ... ) In (a) and (b) aboveCan some one explain how option 'b' is true?
sunil sarode
3.4k
views
sunil sarode
asked
Nov 4, 2017
Programming in C
programming-in-c
macros
functions
+
–
763
views
1
answers
1
votes
GATE CSE 1989 | Question: 4-vi
Consider the definition of macro $B,$ nested within the definition of a macro $A.$ Can a call to macro $B$ also appear within macro $A?$ If not, why not? If yes, explain if there are any restrictions.
makhdoom ghaya
763
views
makhdoom ghaya
asked
Nov 30, 2016
Compiler Design
gate1989
descriptive
compiler-design
macros
unsolved
+
–
1.2k
views
1
answers
0
votes
UGC NET CSE | August 2016 | Part 3 | Question: 45
Match each software term in List-I to its description in List-II : ... iii, c-v, d-i, e-ii}$\text{a-iv, b-iii, c-ii, d-v, e-i}$
makhdoom ghaya
1.2k
views
makhdoom ghaya
asked
Oct 4, 2016
Others
ugcnetcse-aug2016-paper3
system-software-compilers
macros
+
–
2.2k
views
1
answers
1
votes
UGC NET CSE | December 2010 | Part 2 | Question: 32
'Macro' in an assembly level program is _______.Sub programA complete programA hardware portionRelative coding
makhdoom ghaya
2.2k
views
makhdoom ghaya
asked
Sep 8, 2016
CO and Architecture
ugcnetcse-dec2010-paper2
co-and-architecture
assembly
macros
+
–
2.0k
views
2
answers
1
votes
Output of C program
Please explain the solution.The output is 11 7 0#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k == MAX(i++, ++j); printf("%d %d %d", i,j,k); }What will the values of i , j and k?
Anushka Basu
2.0k
views
Anushka Basu
asked
Jul 21, 2016
Programming in C
programming-in-c
output
macros
+
–
8.4k
views
9
answers
7
votes
ISRO2014-3
What is the output of the following C program? #include<stdio.h> #define SQR(x) (x*x) int main() { int a; int b=4; a=SQR(b+2); printf("%d\n",a); return 0; }14361820
pooja14
8.4k
views
pooja14
asked
Jun 22, 2016
Programming in C
programming-in-c
macros
isro2014
+
–
724
views
1
answers
1
votes
Prog\ What is the output
#include <stdio.h> #define crypt(s,t,u,m,p,e,d) m##s##u##t #define begin crypt(a,n,i,m,a,t,e) int begin() { printf("Hello\n"); return 0; }Options are :(a) Hello (b) Link error (c) Segmentation fault (d) Compiler error
Desert_Warrior
724
views
Desert_Warrior
asked
May 16, 2016
Programming in C
programming-in-c
macros
+
–
494
views
2
answers
1
votes
MadeEasy Test Series: Programming & DS - Programming In C
Consider the following program:# define Rec(a) a + a * aint a;a = 20 + Rec(a) * Rec(a + 1);printf(“%d”, a)return 0;}The output of above program for a = 3 is ________.
khushtak
494
views
khushtak
asked
Jan 30, 2016
Programming in C
made-easy-test-series
programming
programming-in-c
macros
+
–
6.3k
views
2
answers
8
votes
ISRO2015-76
Consider the following statements#define hypotenuse (a, b) sqrt (a*a+b*b);The macro call hypotenuse(a+2,b+3);Finds the hypotenuse of a triangle with sides $a+2$ and $b+3$ ... $(b+3)^2$Is invalidFind the square root of $3 *a+4*b+5$
Purple
6.3k
views
Purple
asked
Jan 26, 2016
Programming in C
programming-in-c
macros
isro2015
+
–
3.9k
views
2
answers
8
votes
GATE CSE 1996 | Question: 2.16
Which of the following macros can put a macro assembler into an infinite loop?.MACRO M1, X .IF EQ, X ;if X=0 then M1 X + 1 .ENDC .IF NE, X ;if X ≠ O then .WORD ... X .WORD X + 1 .ENDC .ENDM(ii) only(i) onlyboth (i) and (ii)None of the above
Kathleen
3.9k
views
Kathleen
asked
Oct 9, 2014
Compiler Design
gate1996
compiler-design
macros
normal
+
–
4.8k
views
3
answers
15
votes
GATE CSE 1995 | Question: 1.11
What are $x$ and $y$ in the following macro definition?macro Add x, y Load y Mul x Store y end macroVariablesIdentifiersActual parametersFormal parameters
Kathleen
4.8k
views
Kathleen
asked
Oct 8, 2014
Compiler Design
gate1995
compiler-design
macros
easy
+
–
5.3k
views
2
answers
16
votes
GATE CSE 1997 | Question: 1.9
The conditional expansion facility of macro processor is provided totest a condition during the execution of the expanded programto expand certain model statements ... upon the value of a condition during the process of macro expansion
Kathleen
5.3k
views
Kathleen
asked
Sep 29, 2014
Compiler Design
gate1997
compiler-design
macros
easy
+
–
1.6k
views
3
answers
7
votes
GATE CSE 1992 | Question: 01,vii
Macro expansion is done in pass one instead of pass two in a two pass macro assembler because _________
Kathleen
1.6k
views
Kathleen
asked
Sep 12, 2014
Compiler Design
gate1992
compiler-design
macros
easy
fill-in-the-blanks
+
–
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