main()
{
{
unsigned int bit=256;
printf("%d", bit);
}
{
unsigned int bit=512;
printf("%d", bit);
}
}
a. 256, 256
b. 512, 512
c. 256, 512
d. Compile error
Answer / guest
256, 512, becoz these r different blocks, so declaration
allowed
| Is This Answer Correct ? | 21 Yes | 0 No |
main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above
Write a program that find and print how many odd numbers in a binary tree
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.
Write a C program to print look and say sequence? For example if u get the input as 1 then the sequence is 11 21 1211 111221 312211 12112221 .......(it counts the no. of 1s,2s etc which is in successive order) and this sequence is used in run-length encoding.
How will u find whether a linked list has a loop or not?
What are the files which are automatically opened when a C file is executed?
why array index always strats wuth zero?
Find the largest number in a binary tree
Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary.
Program to find the largest sum of contiguous integers in the array. O(n)
Is this code legal? int *ptr; ptr = (int *) 0x400;