>
Exams
>
Digital Electronics
>
Programmable Logic Array
>
what is the o p printed parameters all evaluated f
Question:
int g(int p)
{
printf("%d", p);
return p;
}
int h(int q)
{
printf("%d", q);
return q;
}
void f(int x, int y)
{
g(x);
h(y);
}
int main ()
f(g(10), h(20));
}
What is the o/p printed ? (parameters all evaluated from left to right)
GATE CS
Updated On:
Feb 12, 2024
Hide Solution
Verified By Collegedunia
Solution and Explanation
The answer is 10,20,10,20.
Download Solution in PDF
Was this answer helpful?
0
0
Top Questions on Programmable Logic Array
int main () {
double a [2]={20.0.25.0},
*
p,
*
q,
p=a;
q=p+1
printf (%d, %d, (int) (q-p))
int(
*
-q-
*
p);
GATE CS
Digital Electronics
Programmable Logic Array
View Solution
View All
Questions Asked in GATE CS exam
With respect to a TCP connection between a client and a server, which of the following is true?
GATE CS - 2026
Computer Networks
View Solution
Let $P, Q, R, S$ be relational schemas. Let ``$\rightarrow$'' indicate a functional dependency (FD) in this context. Which of the following best describes the meaning of a functional dependency?
GATE CS - 2026
Database Management Systems
View Solution
Let a Non-deterministic Finite Automaton (NFA) have 6 states over a finite alphabet. Which of the following cannot be the number of states in a minimal Deterministic Finite Automaton (DFA) that is equivalent to this NFA?
GATE CS - 2026
Theory of Computations
View Solution
A certain processor uses a fully associative cache of size 16 kB. The cache block size is 16 bytes. Assume that the main memory is byte addressable and uses a 32-bit address. How many bits are required for the Tag and the Index fields respectively in the addresses generated by the processor?
GATE CS - 2026
Computer Organization and Architecture
View Solution
Consider $Z = X - Y$, where $X$, $Y$ and $Z$ are all in sign-magnitude form. $X$ and $Y$ are each represented in $n$ bits. To avoid overflow, the representation of $Z$ would require a minimum of:
GATE CS - 2026
Computer Organization and Architecture
View Solution
View More Questions