Question Type :C


Point out the error in the program.
#define MAX 128

int main()
char mybuf[] = "India";
char yourbuf[] = "Today";
char *const ptr = mybuf;
*ptr = 'a';
ptr = yourbuf;
return 0;

Error: unknown pointer conversion
Error: cannot convert ptr
No error


Quick Links

Prepare For CCAT Exam :

Here you will get The best pre dac 45 days free course .

CDAC C-CAT 2019 – Centre for Development of Advanced Computing (C-DAC) has started registration
C-DAC’s Common Admission Test (C-CAT) 2019, for admission in February 2020 batch.

The exam will be held December 8 and 15 and the last date to apply is November 27, 2019.
CDAC C-CAT is a computer based exam, which is conducted for admission of candidates PG Diploma in 13 courses.

The exam is conducted twice a year, in December for February batch admission and in June for August batch admission.
The candidates who qualify the exam are called for the counselling round. Check CDAC C-CAT 2019 exam date, course,
registration details, and more information from this page.