write a program to display the numbers in the following format 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3 4
9 12802what is the output of the program and explain why??
#include
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
2 7447. Consider the following program main() { int a[5]={1,3,6,7,0}; int *b; b=&a[2]; } The value of b[-1] is (A) 1 (B) 3 (C) -6 (D) none
9 20327Given a piece of code int x[10]; int *ab; ab=x; To access the 6th element of the array which of the following is incorrect? (A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .
2 8297What is the output of the following progarm?
#include
What is the o/p of the follow pgm?
#include
#include
What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?
2 7568Is main() is used in the program,,see below example? void main() { int i; for(i=0;i<10;i++) main(); } Then what is the output of the program?
6 5953What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }
7 8755What is the output of the below program and how it is? void main() { static int var=5; printf("%d",var--); if(var) main(); }
8 17618
What is stack in c?
What is a protocol in c?
What is extern c used for?
Did c have any year 2000 problems?
Explain what is the difference between functions abs() and fabs()?
Once I have used freopen, how can I get the original stdout (or stdin) back?
How can you convert integers to binary or hexadecimal?
what are the advantages of a macro over a function?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Tell me what is the purpose of 'register' keyword in c language?
How can you access memory located at a certain address?
What is static memory allocation? Explain
What is structure padding in c?
What do header files do?
write a program to display all prime numbers