main()
{
int i=400,j=300;
printf("%d..%d");
}
Answers were Sorted based on User's Feedback
Answer / muthu
It prints only garbage value, since the variables x and y
were not metioned out side the bracket
Is This Answer Correct ? | 0 Yes | 3 No |
Answer:
400 300
printf takes first two intilization values as default
Is This Answer Correct ? | 2 Yes | 9 No |
can anyone please tell about the nested interrupts?
Describe the order of precedence with regards to operators in C.
main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); }
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these
what is difference between C and C++
Write a program that receives as input a number omaadel-n-print, four digits.
how can you print&scan anything using just one character? :) HINT: printf,scanf similer
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
what is compiler
Why main is used in c?
write a program to swap two variables a=5 , b= 10 without using third variable