Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

What will be the output of the following C++ code? #include <stdio.h> #include <ctype.h> int main () { int i = 0; int cx = 0; char str[] = "Hello, welcome!"; while (str[i]) { if (ispunct(str[i])) cx++; i++; } printf ("%d\n", cx); return 0; }

Select the correct option to test your answer:

More Computer Questions

. . . . . . . . returns a dictionary of the module namespace. . . . . . . . . returns a dictionary of the current namespace. Which is not the location object method? A 4 KHz noiseless channel with one sample every 125 per sec, is used to transmit digital signals. Find the bit rate (bits per second) that are sent, if CCITT 2.048 Mbps encoding is used. What is the purpose of the method JSON.parse()? Which of these is superclass of ContainerEvent class?