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 14898what 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 8227. 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 22649Given 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 9231What 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 8263Is 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 7372What 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 10416What is the output of the below program and how it is? void main() { static int var=5; printf("%d",var--); if(var) main(); }
8 19803
What is pointer to pointer in c?
What is non linear data structure in c?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
I need previous papers of CSC.......plz help out by posting them.......
What is the difference between call by value and call by reference in c?
Why do we use pointer to pointer in c?
All technical questions
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Define Spanning-Tree Protocol (STP)
in iso what are the common technological language?
What is call by value in c?
What header files do I need in order to define the standard library functions I use?
How to establish connection with oracle database software from c language?
Write a code on reverse string and its complexity.