Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
What is the output of the below program? Answer: #include<stdio.h> int main() { printf("%u",sizeof(NULL)); return 0; }
Home
Technology
What is the output of the below program? Answer:...
asked
Jan 23, 2021
in
Technology
by
JackTerrance
What is the output of the below program?
#include<stdio.h>
int
main
()
{
printf
(
"%u"
,
sizeof
(
NULL
))
;
return
0
;
}
interview-question-answer
technology-questions-answers
1
Answer
0
votes
answered
Jan 23, 2021
by
JackTerrance
The size will same as other pointers.
Related questions
0
votes
Q: Q.32 :-What will the SWAP macro in the following program beexpanded to on preprocessing? will the code compile?#include<stdio.h>#define SWAP(a, b, c)(ct; t=a, a=b, b=t)int maino{intx=10, y=20;SWAP(x, y, int);printf(“%d %d\n”, x, y);
Q.32 :-What will the SWAP macro in the following program be expanded to on preprocessing? will the code compile? ... y); return 0; Select the correct answer from above options...
asked
Nov 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output of the program? #include #include void fun(char *msg, …); int main() { fun(“indiabix”, 1, 4, 7, 11, 0); return 0; } void fun(char *msg, …) { va_list ptr; int num; va_start(ptr, msg); num = va_arg(ptr, int); num = va_arg(ptr, int); printf(“%d”, num); } indiabix 1 7 11 0 1 4 7?
What will be the output of the program? #include #include void fun(char *msg, ); int main() { fun( indiabix , 1, 4, ... 7 11 0 1 4 7? Select the correct answer from above options...
asked
Nov 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: 15.#include <stdio.h>#define foo(m, n) m + nint main(){int a = foo(5,13);
15. #include #define foo(m, n) m + n int main() { int a = foo(5,13); printf(“%d”, a); Select the correct answer from above options...
asked
Dec 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: int fun(int n){if(n!=0) {return n – fun(n-5);}else {return n;}}int main(){int n = 20, z;z = fun(n);printf(“%d”, z);
int fun(int n) { if(n!=0) { return n – fun(n-5); } else { return n; } } int main(){ int n = 20, z; z = fun(n); printf(“%d”, z); } Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: {int ar[] = { 3, 1, 4, 6, 5 };int ar_size = sizeof(ar) / sizeof(ar[0]);isTriplet(ar, ar_size) ? cout << “Yes” : cout << “No”;return 0;
{ int ar[] = { 3, 1, 4, 6, 5 }; int ar_size = sizeof(ar) / sizeof(ar[0]); isTriplet(ar, ar_size) ? cout...
asked
Dec 9, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: {int ar[] = { 3, 1, 4, 6, 5 };int ar_size = sizeof(ar) / sizeof(ar[0]);isTriplet(ar, ar_size) ? cout << “Yes” : cout << “No”;return 0;
{ int ar[] = { 3, 1, 4, 6, 5 }; int ar_size = sizeof(ar) / sizeof(ar[0]); isTriplet(ar, ar_size) ? cout...
asked
Dec 3, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: – What will be the output of the following C code? #include int main() { int i = 97, *p=&i; foo(&p);
- What will be the output of the following C code? #include int main() { int i = 97, *p=&i; foo( ... (D) Segmentation fault/code crash Select the correct answer from above options...
asked
Dec 24, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Analyse the given program segment and answer the following questionsi) write the output of the program segment ii)how many times does the body of the loop gets executefor(int m=5 ; m<=20 ;m+=5){if (m%3= = 0)break;elseif (m%5= = 0) System.out.println(m) continue;}
Analyse the given program segment and answer the following questions i) write the output of the program segment ii)how many times ... body of the loop gets execute for(int m=5 ; m...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: do you think the following two expression are the same if yes write the output if not justify your answer X=int(22/7) X=(22.0/7)
do you think the following two expression are the same if yes write the output if not justify your answer X=int(22/7) X=(22.0/7) Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: int find(int i) {if(>1)j=find(j/10)+(j%10)elsej=0;return j;void main()int i=1000int kk=find(i):
int find(int i) { if(>1) j=find(j/10)+(j%10) else j=0; return j; void main() int i=1000 int k k=find(i): printf(“%d”, K) Select the correct answer from above options...
asked
Dec 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: int find(int j) {if(>1Xj=find(j/ 10)+(%10);}else {j=0;return j;void main()int i=1000,int k;k=find(i);
int find(int j) { if(>1X j=find(j/ 10)+(%10); } else { j=0; return j; void main() int i=1000, int k; k=find(i); printf(“%d”, k); Select the correct answer from above options...
asked
Dec 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What is the output of the following program?3.#include <iostream>using namespace std;
What is the output of the following program? 3 . #include using namespace std; struct Time { int hours; int ... 20000 D. O 15000 Select the correct answer from above options...
asked
Dec 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What is the output of the following program?3.#include <iostream>using namespace std;
What is the output of the following program? 3 . #include using namespace std; struct Time { int hours; int ... 20000 D. O 15000 Select the correct answer from above options...
asked
Dec 26, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc ... (id(q) == foo(q)) a) Error b) None c) False d) True...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-questions-answers
0
votes
Q: What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc ... (id(q) == foo(q)) a) Error b) None c) False d) True...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-question-answers
...