Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged data-types
15
votes
2
answers
1
GATE Overflow Test Series | Mock GATE | Test 1 | Question: 33
Consider the following C program run on a system using $\text{IEEE-754}$ representation for floating-point numbers. #include<stdio.h> int main() { float a=2.4,b=2.5; if(a==2.4) { printf("2021"); } if(b==2. ... "2020"); } return 0; } What will be the output of the above program? $20212020$ $2020$ $2021$ No output
Consider the following C program run on a system using $\text{IEEE-754}$ representation for floating-point numbers.#include<stdio.h int main() { float a=2.4,b=2.5; if...
gatecse
1.1k
views
gatecse
asked
Jan 3, 2021
Programming in C
go2025-mockgate-1
programming-in-c
data-types
+
–
5
votes
1
answer
2
GATE Overflow Test Series | Programming | Test 1 | Question: 10
Which of the following assignments causes an overflow? (Assume size of int is $4$ bytes and long int is $8$ bytes) int a = 123456789; int a = 123456789123456789L; unsigned a = 123456789; long int a = 123456789123456789;
Which of the following assignments causes an overflow? (Assume size of int is $4$ bytes and long int is $8$ bytes)int a = 123456789;int a = 123456789123456789L;unsigned a...
gatecse
420
views
gatecse
asked
Jul 26, 2020
Programming in C
go2025-programming-1
data-types
+
–
8
votes
1
answer
3
GATE Overflow Test Series | Programming | Test 1 | Question: 12
Consider the following C program fragment: double a = getMyDouble(); float b, c; b = getMyFloat(); c = a + b; If the assembly instruction corresponding to the addition is "ADD R0, R1" where R0 is having the value corresponding to the variable b, the minimum required size in bytes of the register R0 is _____ bytes.
Consider the following C program fragment:double a = getMyDouble(); float b, c; b = getMyFloat(); c = a + b;If the assembly instruction corresponding to the addition is "...
gatecse
547
views
gatecse
asked
Jul 26, 2020
Programming in C
go2025-programming-1
numerical-answers
data-types
+
–
2
votes
6
answers
4
UGC NET CSE | December 2005 | Part 2 | Question: 11
What is the output of the following $C$-program main() { printf("%d %d %d",size of (3.14f), size of (3.14), size of (3.141)); } 4 4 4 4 8 10 8 4 8 8 8 8
What is the output of the following $C$-programmain() { printf("%d %d %d",size of (3.14f), size of (3.14), size of (3.141)); }4 4 44 8 108 4 88 8 8
go_editor
2.2k
views
go_editor
asked
Mar 27, 2020
Programming in C
ugcnetcse-dec2005-paper2
programming-in-c
data-types
+
–
7
votes
3
answers
5
GATE Overflow | Programming | Test 1 | Question: 6
The output of the following C program will be _____ #include<stdio.h> #define type int type foo(type b) { return b*b; } #undef type #define type float int main() { float a = foo(1.1); printf("%1.2f", a); }
The output of the following C program will be _____#include<stdio.h #define type int type foo(type b) { return b*b; } #undef type #define type float int main() { float a ...
Arjun
1.6k
views
Arjun
asked
Oct 18, 2016
Programming in C
go-programming-1
programming
programming-in-c
data-types
numerical-answers
+
–
0
votes
1
answer
6
UGC NET CSE | June 2010 | Part 2 | Question: 15
The data type created by the data abstraction process is called Class Structure Abstract data type User defined data type
The data type created by the data abstraction process is calledClassStructureAbstract data typeUser defined data type
makhdoom ghaya
1.4k
views
makhdoom ghaya
asked
Sep 15, 2016
Programming in C
ugcnetcse-june2010-paper2
programming
data-types
+
–
2
votes
2
answers
7
UGC NET CSE | December 2011 | Part 2 | Question: 33
If an integer needs two bytes of storage, then the maximum value of unsigned integer is $2^{16} – 1$ $2^{15} – 1$ $2^{16}$ $2^{15}$
If an integer needs two bytes of storage, then the maximum value of unsigned integer is$2^{16} – 1$$2^{15} – 1$$2^{16}$ $2^{15}$
makhdoom ghaya
1.6k
views
makhdoom ghaya
asked
Aug 19, 2016
Programming and DS
ugcnetcse-dec2011-paper2
programming-in-c
data-types
+
–
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