write a program to print %d ?
Answers were Sorted based on User's Feedback
Answer / chinna
#include<stdio.h>
#include<conio.h>
void main()
{
printf("%d");
}
| Is This Answer Correct ? | 15 Yes | 10 No |
Answer / satish
#include<stdio.h>
main(){
printf("%cd",37);// ASCII value of % = 37
}
| Is This Answer Correct ? | 14 Yes | 9 No |
Answer / agalya
#include<stdio.h>
#include<conio.h>
void main()
{
printf("\%d");
}
| Is This Answer Correct ? | 13 Yes | 10 No |
Answer / manikanta
#include "stdio.h"
main()
{
printf(" %%d ");
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / hareram ray
#include<stdio.h>
int main(int argc,char *argv)
{
clrscr();
printf("%d");
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / murali
#include<stdio.h>
#include<conio.h>
void main()
{
printf("%");
printf("d");
}
| Is This Answer Correct ? | 9 Yes | 10 No |
for (i <= 5 && i >= -1;++i; i > 0) { printf("%d ", i); }
What is #line used for?
can we execute the program with the object file
Why void main is used in c?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Explain demand paging.
Is boolean a datatype in c?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
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,
pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.
Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”
What are the advantages of c language?