what will be the output for the following
main()
{
printf("hi" "hello");
}
Answers were Sorted based on User's Feedback
Answer / manishsoni
can any one tell me hows the answer is:
hihello
Is This Answer Correct ? | 2 Yes | 0 No |
void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.
Is there any data type in c with variable size?
we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?
Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?
Why do u use # before include in a C Progam?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Is main a keyword in c?
How do you do dynamic memory allocation in C applications?
Differentiate between declaring a variable and defining a variable?