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 14570what 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 8121. 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 22308Given 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 9117What 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 8135Is 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 7169What 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 10156What is the output of the below program and how it is? void main() { static int var=5; printf("%d",var--); if(var) main(); }
8 19502
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is function prototype in c language?
Why do we use int main instead of void main in c?
Explain void pointer?
Explain how can I manipulate strings of multibyte characters?
How do I send escape sequences to control a terminal or other device?
What is the explanation for modular programming?
How does pointer work in c?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What is a pointer in c plus plus?
What is table lookup in c?
Should a function contain a return statement if it does not return a value?
What is array of structure in c programming?
How can I dynamically allocate arrays?
Do you know the difference between malloc() and calloc() function?