printf("%d",(printf("Hello")); What it returns?
Answers were Sorted based on User's Feedback
Answer / srinivasa. p
5
Printf() return number character print on STD::out
Is This Answer Correct ? | 13 Yes | 16 No |
Answer / s.veena bhargavi
prinf execution starts from right to left so it will prints
hello &here printf is taken as a function, it returns int
value as len of srting is 5.it does'nt count /0
Is This Answer Correct ? | 4 Yes | 7 No |
Answer / anonymous
an Error will occur....bcos the function call is missing in
main().
Is This Answer Correct ? | 0 Yes | 4 No |
Answer / vignesh1988i
the printf fun() always writterns the numbeer of characters
...... so 5 is o/p
Is This Answer Correct ? | 0 Yes | 6 No |
Answer / pavithra
error will occur because within a printf statement another
printf statement is present
Is This Answer Correct ? | 3 Yes | 15 No |
Answer / srinivasa. p
1
Printf() return number character print on STD::out
Is This Answer Correct ? | 4 Yes | 23 No |
Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.
void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?
Write a program for the following series? 1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321 1234567890987654321 123456789010987654321 12345678901210987654321 1234567890123210987654321 .........1234321............ ..........123454321............ ..........12345654321............ 7 8 9 0 1 Pls............?
How can I increase the allowable number of simultaneously open files?
Why main function is special give two reasons?
If errno contains a nonzero number, is there an error?
what is the other ways to find a logic to print whether a number is an even or odd wit out using % symbol??????? i know three different ways to print it. so i need any other different logic>>>>>
Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā%cā, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.
1 Answers BladeLogic, Infosys,
Can we use visual studio for c?
If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.
How can you increase the size of a dynamically allocated array?
What is pivot in c?