main(){
char a[100];
a[0]='a';a[1]]='b';a[2]='c';a[4]='d';
abc(a);
}
abc(char a[]){
a++;
printf("%c",*a);
a++;
printf("%c",*a);
}
Answers were Sorted based on User's Feedback
Answer / susie
Explanation:
The base address is modified only in function and as a
result a points to 'b' then after incrementing to 'c' so bc
will be printed.
| Is This Answer Correct ? | 1 Yes | 1 No |
#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225 c. 15 d. none of the above
void main() { int i=i++,j=j++,k=k++; printf(ā%d%d%dā,i,j,k); }
String copy logic in one line.
Write a program that produces these three columns sequence nos. using loop statement Sequence nos. Squared Squared + 5 1 1 6 2 4 9 3 9 14 4 16 21 5 25 30
main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }
To reverse an entire text file into another text file.... get d file names in cmd line
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
why array index always strats wuth zero?
program to find the roots of a quadratic equation
14 Answers College School Exams Tests, Engineering, HP, IIIT, Infosys, Rajiv Gandhi University of Knowledge Technologies RGUKT, SSC,
Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.