sharathvadla
BAN USER
Questions (5)
Reputation 10
- 0of 0 votes
Answerswhat is output for below code and what is purpose of using const type for pointer variable p?
- sharathvadla in United States
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char a[10]="HELLO";
char *const p=a;
clrscr();
//puts(p);
printf("%s",p);
*p='n';
//puts(p);
printf("%s",p);
getch();
}| Report Duplicate | Flag | PURGE
Persistent Systems Software Engineer / Developer C - 0of 0 votes
AnswersInt a=10;
- sharathvadla in India
Int b=a>15;
Print("%d",b);
a)15
b)10
c)0
d)1| Report Duplicate | Flag | PURGE
Persistent Systems Software Engineer / Developer C
Page:
1
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.