recategorized by
586 views
0 votes
0 votes
que--Study the following program written in a block structured language.

var p, q : integer;

begin

            p:= p+q;

            q:= p−q;

            p:= p−q;

end;

(a) exchanges (p) and (q)                                            (b) doubles (p) and stored in (q)

(c) doubles (q) and stores in (p)                                  (d) leaves (p) and (q) unchanged
recategorized by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
2
Robin Hoque asked Aug 18, 2017
737 views
What is the output of following program#include<stdio.h>int main(){ short int i=20; char c=97; printf("%d,%d,%d\n",sizeof(i),sizeof(c),sizeof(c+i)); return 0;...
0 votes
0 votes
0 answers
3
Rahul_Rathod_ asked Dec 28, 2018
335 views
let R be the class of recursive program and l be the class of iterative program now consider below statement S S : every program in R uses strictly more space compare to ...
1 votes
1 votes
1 answer
4
rahul sharma 5 asked Apr 12, 2018
696 views
a:) If given Tree is BST = Inorder of keys is sortedb:) Inorder of keys is sorted = Tree is BST(converse of above)I know first one holds.Is second one also true?If not ca...