What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 0;
int x = i++, y = ++i;
printf(“%d % d\n”, x, y);
return 0;
}
What will be the output of the following C code? #include <stdio.h> ...
View QuestionWhen do you need to use type-conversions?
a) The value to be stored is beyond the max limit b) The value to be stored is ...
View QuestionWhich of the following typecasting is accepted by C?
a) Widening conversions b) Narrowing conversions c) Widening & Narrowing conversions d) None of the mentioned Answer: ...
View QuestionWhich of the following type-casting have chances for wrap around?
a) From int to float b) From int to char c) From char to short d) From char to int
View Question
What will be the data type of the result of the following operation?
(float)a * (int)b / (long)c * (double)d
What will be the data type of the result of the following operation? (float)a * (int)b / (long)c ...
View QuestionWhich type of conversion is NOT accepted?
a) From char to int b) From float to char pointer c) From negative int to char d) From double ...
View Question
What will be the output of the following C code considering the size of a short int is 2, char is 1 and int is 4 bytes?
#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;
}
What will be the output of the following C code considering the size of a short int is ...
View Questionfunction tolower(c) defined in library <ctype.h> works for ___________
a) Ascii character set b) Unicode character set c) Ascii and utf-8 but not EBCDIC character set d) Any character ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 1;
if (i++ && (i == 1))
printf(“Yes\n”);
else
printf(“No\n”);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question