4)What would be the output?
main()
{
int num=425;
pf("%d",pf("%d",num));
}
a)Comp error
b)4425
c)4253
d)3435
e)none
Answers were Sorted based on User's Feedback
Answer / aswini
see.printf is a function that returns number.hence it will
return 3.then as there is a %d it will return the number in
its locality.hence it will return 425.
so the answer is 4253....
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ar ind,faisal,jitendra
4253 bcoz printf always return no of chracters inside its()
so it become 4253
| Is This Answer Correct ? | 2 Yes | 0 No |
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What are near, far and huge pointers?
0 Answers Hexaware, Thomson Reuters, Virtusa,
void main() { int a=1; while(a++<=1) while(a++<=2); }
a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?
Why calloc is better than malloc?
Is multithreading possible in c?
can v write main() { main(); } Is it true?
What is const keyword in c?
what would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }
how to swap 4 number without using temporary number?
How do you list files in a directory?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)