What is the memory allocated by the following definition ?
int (*x)();
Answers were Sorted based on User's Feedback
Answer / dddhacker
Wrong!
Its a function pointer, therefore on a 32 bit platform for
example, 4 bytes are allocated for it.
Is This Answer Correct ? | 13 Yes | 2 No |
Answer / ningappa
The above code is function pointer declaration.So there is
no memory allocated as it is just declaration and no value
is being assigned to it........
Is This Answer Correct ? | 6 Yes | 3 No |
What is the difference between test design and test case design?
Should a function contain a return statement if it does not return a value?
Do array subscripts always start with zero?
What are unions in c?
What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?
What is the difference between void main and main in c?
Explain the difference between #include "..." And #include <...> In c?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Why main is used in c?
compute the nth mumber in the fibonacci sequence?
10 Answers Canon, HPL, Satyam, TCS,
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
Why doesnt this code work?