main()
{
char *p = “ayqm”;
printf(“%c”,++*(p++));
}
Answers were Sorted based on User's Feedback
Answer / ravneet kaur
as *p has address of a.and after increment p++ it moves to
y and after ++*(p++) its address is incremented and gets the
another location and gets the value z and value of memory
location is any other value.
Is This Answer Correct ? | 6 Yes | 14 No |
write a program for area of circumference of shapes
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])
write a c-program to find gcd using recursive functions
create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"
how to delete an element in an array
what is the code of the output of print the 10 fibonacci number series
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
4. Main() { Int i=3,j=2,c=0,m; m=i&&j||c&I; printf(“%d%d%d%d”,I,j,c,m); }
how to swap 3 nos without using temporary variable
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }
Program to find the largest sum of contiguous integers in the array. O(n)