[Solved] What is means of this? [closed]


It could mean that the interviewer wanted to test your reaction to being confronted with invalid source code.

I have no idea what the intention of Func()[] = 'a'; is. The C++ compiler clang 3.4 outputs the following:

a.cc:3:9: warning: conversion from string literal to 'char *' is deprecated
      [-Wc++11-compat-deprecated-writable-strings]
 return "Text";
        ^
a.cc:6:1: error: C++ requires a type specifier for all declarations
Func()[] = 'a';
^~~~
a.cc:6:5: error: function cannot return array type 'int []'
Func()[] = 'a';

2

solved What is means of this? [closed]