|
Question |
Rating |
View Answer |
|
Range of int in is -32768 to 32767 and it occupy 2 byte in memory and char take 1 byte take single char but in java int is 4 byte take value-2,147,483648 to 647 and char occupy 2 byte and also take single variable why not more?`
|
|
View Answer |
|
Would the following program compile?
main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("n%u%u",j,k); }
|
|
View Answer |
|
How do you write a C program which can calculate lines of code but not counting comments?
|
|
View Answer |
|
Write a program to accept any number up to six digit and print in words. for ex:1234=one two three four |
|
View Answer |
|
In which line of the following, an error would be reported? 1. #define CIRCUM(R) (3.14*R*R); 2. main() 3. { 4. float r=1.0,c; 5. c= CIRCUM(r); 6. printf("n%f",c); 7. if(CIRCUM(r))==6.28) 8. printf("nGobbledygook"); 9. }
|
|
View Answer |
|
main() { signed int bit=512, i=5; for(;i;i--) { printf("%dn", bit = (bit >> (i - (i -1)))); } }
|
|
View Answer |
|
main() { printf("%d, %d", sizeof('c'), sizeof(100)); }
|
|
View Answer |
|
What is the function of % using in formatted string. |
|
View Answer |
|
main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); }
|
|
View Answer |
|
main() { char c; int i = 456; clrscr(); c = i; printf("%d", c); }
|
|
View Answer |
|
Can we have nested header files in C? |
|
View Answer |
|
How to reduce a final size of executable ? |
|
View Answer |
|
What is the output of the following program?
#define SQR(x) (x*x)
main()
{
int a,b=3;
a= SQR(b+2);
printf("%d",a);
}
|
|
View Answer |
|
What would be the output of the following program?
main() { char near * near *ptr1; char near * far *ptr2; char near * huge *ptr3; printf("%d %d %d",sizeof(ptr1),sizeof(ptr2),sizeof(ptr3)); }
|
|
View Answer |
|
What would be the output of the following program? main() { const int x=5; int *ptrx; ptrx=&x; *ptrx=10; printf("%d",x); }
|
|
View Answer |
|
main() { int x=5; clrscr(); for(;x==0;x--) { printf("x=%dn”", x--); } }
|
|
View Answer |
|
What are bit fields? What is the use of bit fields in a structure declaration? |
|
View Answer |
|
The program that outputs the given binary or image file |
|
View Answer |
|
Can a file other than a .h file be included with #include ? |
|
View Answer |
|
How can we open a image file through C program
|
|
View Answer |