In the following pgm add a stmt in the function fun such
that the address of
'a' gets stored in 'j'.
main(){
int * j;
void fun(int **);
fun(&j);
}
void fun(int **k) {
int a =0;
/* add a stmt here*/
}
Answer / susie
Answer :
*k = &a
Explanation:
The argument of the function is a pointer to a pointer.
| Is This Answer Correct ? | 1 Yes | 0 No |
main() { int i=5,j=6,z; printf("%d",i+++j); }
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
9 Answers CSC, GoDB Tech, IBM,
int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too
main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above
4 Answers Corporate Society, HCL,
main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }
write a c program to Reverse a given string using string function and also without string function
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
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
What is data _null_? ,Explain with code when u need to use it in data step programming ?
int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }
Write a program to receive an integer and find its octal equivalent?
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }