Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
A technique used by codes to convert an analog signal into a digital bit stream is known as
Pulse code modulation A technique used by codes to convert an analog signal into a digital bit stream is known as. Pulse code modulation.
Pulse code modulation
See lessA technique used by codes to convert an analog signal into a digital bit stream is known as. Pulse code modulation.
In the following program how long will the for loop get executed? #include<stdio.h> int main() { int i=5; for(;scanf("%s", &i); printf("%d\n", i)); return 0; }
The for loop would get executed infinite times
The for loop would get executed infinite times
See lessWhat is the output of the program #include<stdio.h> int main() { int a[5] = {2, 3}; printf("%d, %d, %d\n", a[2], a[3], a[4]); return 0; }
The output of the following 'C' program. main() { int a[5]={2,3}; printf("\n%d%d%d",a[2],a[3],a[4]); Output:- 000.
The output of the following ‘C’ program.
main()
{
int a[5]={2,3};
printf(“\n%d%d%d”,a[2],a[3],a[4]);
Output:-
000.
See lessWhat is the output of the program? #include<stdio.h> int main() { union a { int i; char ch[2]; }; union a u; u.ch[0] = 3; u.ch[1] = 2; printf("%d, %d, %d\n", u.ch[0], u.ch[1], u.i); return 0; }
Your defined union have two members... 1) int =====================> size =4 B 2) character array of length 2 ===> size =2 B Therefore size of Union is 4B You updated the Char member of Union at last ===> Character array is having the original value. what about " int " ? (assume your systemRead more
Your defined union have two members…
1) int =====================> size =4 B
2) character array of length 2 ===> size =2 B
Therefore size of Union is 4B
You updated the Char member of Union at last ===> Character array is having the original value.
what about ” int ” ? (assume your system is following little endian)
it access the total 4B ===> ch[1] ch[0] ====> 00000010 00000011 ===> 512+3 = 515
if you have the doubt that why not accessing in the form of ch[0] ch[1] ====> 00000011 00000010 ===> 512+256+2 = 770
See lessWhat is the output of the program #include<stdio.h> int main() { extern int fun(float); int a; a = fun(3.14); printf("%d\n", a); return 0; } int fun(int aa) { return (int)++aa; }
Explanation: extern int fun(); declaration in C is to indicate the existence of a global function and it is defined externally to the current module or in another file. int fun(); declaration in C is to indicate the existence of a function inside the current module or in the same file.
Explanation: extern int fun(); declaration in C is to indicate the existence of a global function and it is defined externally to the current module or in another file. int fun(); declaration in C is to indicate the existence of a function inside the current module or in the same file.
See lessWhat will be the output of the program? #include<stdio.h> int X=40; int main() { int X=20; printf("%d\n", X); return 0; }
include int main() { int x; x=(10,20,30); printf("%d", x); return 0; }
include
See lessint main()
{
int x;
x=(10,20,30);
printf(“%d”, x);
return 0;
}
What is the output of the program in Turbo C (in DOS 16-bit OS)? #include<stdio.h> int main() { char *s1; char far *s2; char huge *s3; printf("%d, %d, %d\n", sizeof(s1), sizeof(s2), sizeof(s3)); return 0; }
Expert-Verified Answer ... char *s1 = 2 bytes. char far *s2; = 4 bytes. char huge *s3; = 4 bytes. Hence,output is 2,4,4.
Expert-Verified Answer … char *s1 = 2 bytes. char far *s2; = 4 bytes. char huge *s3; = 4 bytes. Hence,output is 2,4,4.
See lessWhat is the output of the program #include<stdio.h> int main() { int x = 10, y = 20, z = 5, i; i = x < y < z; printf("%d\n", i); return 0; }
1 will be printed. Explanation: Since x < y turns to be TRUE it is replaced by 1. Then 1 < z is compared and to be TRUE.
1 will be printed. Explanation: Since x < y turns to be TRUE it is replaced by 1. Then 1 < z is compared and to be TRUE.
See lessWhat is the output of the program #include<stdio.h> int main() { struct emp { char name[20]; int age; float sal; }; struct emp e = {"Tiger"}; printf("%d, %f\n", e.age, e.sal); return 0; }
#include int X=40; int main() { int X=20; printf("%d\n", X); return 0; }
#include int X=40; int main() { int X=20; printf(“%d\n”, X); return 0; }
See lessWhen we mention the prototype of a function?
A function prototype refers to a declaration of the function that informs the program regarding the type of value returned. Furthermore, this value is returned by the function, number, and type of arguments. This prototype refers to a declaration of a function that specifies the type signature and tRead more
A function prototype refers to a declaration of the function that informs the program regarding the type of value returned. Furthermore, this value is returned by the function, number, and type of arguments. This prototype refers to a declaration of a function that specifies the type signature and the function’s name.
See less