51. Suppose we transfer a file written on a little endian machine to a big endian machine and there is no transformation from little endian to big endian, then what happens?
52. File formats which have . . . . . . . . as a basic unit are independent of endianness.
53. What will be the output of the following C code?
#include<stdio.h>
static inline int max(int a, int b)
{
return a > b ? a : b;
}
main()
{
int m;
m=max(-6,-5);
printf("%d",m);
}
#include<stdio.h>
static inline int max(int a, int b)
{
return a > b ? a : b;
}
main()
{
int m;
m=max(-6,-5);
printf("%d",m);
}
54. Sign qualifiers can be applied to double.
55. What is the output of this C code?
#include <stdio.h>
main()
{
char *p = "Examveda C-Test";
p[0] = 'a';
p[1] = 'b';
printf("%s", p);
}
#include <stdio.h>
main()
{
char *p = "Examveda C-Test";
p[0] = 'a';
p[1] = 'b';
printf("%s", p);
}
56. The following C code results in an error. State whether this statement is true or false.
#include <stdio.h>
void f(double b)
{
printf ("%ld\n",b);
}
int main()
{
inline f(100.56);
return 0;
}
#include <stdio.h>
void f(double b)
{
printf ("%ld\n",b);
}
int main()
{
inline f(100.56);
return 0;
}
57. What will be the output of the following C code?
main()
{
unsigned a=10;
long unsigned b=5l;
printf(“%lu%u”,a,b);
}
main()
{
unsigned a=10;
long unsigned b=5l;
printf(“%lu%u”,a,b);
}
58. What is the binary representation of the integer -14?
59. Functions in C Language are always . . . . . . . .
60. What will be the error in the following C code?
main()
{
long float a=-25.373e22;
printf("%lf",a);
}
main()
{
long float a=-25.373e22;
printf("%lf",a);
}