void main()
{
int const * p=5;
printf("%d",++(*p));
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
Compiler error: Cannot modify a constant value.
Explanation:
p is a pointer to a "constant integer". But we
tried to change the value of the "constant integer".
| Is This Answer Correct ? | 79 Yes | 10 No |
Answer / mahe
5
pointer value does not change.so print thier value
| Is This Answer Correct ? | 3 Yes | 8 No |
Answer / jambalakadi pamba
here...p is a pointer which is pointing to a addresss which is constant....!!! so the output is 6
| Is This Answer Correct ? | 8 Yes | 22 No |
write a program to Insert in a sorted list
how to swap 3 nos without using temporary variable
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*/ }
You are given any character string. Find the number of sets of vowels that come in the order of aeiou in the given string. For eg., let the given string be DIPLOMATIC. The answer returned must be "The number of sets is 2" and "The sets are "IO and AI". Vowels that form a singleton set must be neglected. Try to post the program executable in gcc or g++ or in java.
Write a program that find and print how many odd numbers in a binary tree
#include<stdio.h> int main() { int x=2,y; y=++x*x++*++x; printf("%d",y); } Output for this program is 64. can you explain how this output is come??
int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too
C program to print magic square of order n where n > 3 and n is odd
Cluster head selection in Wireless Sensor Network using C programming language.
Display the time of the system and display the right time of the other country
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"